mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
parent
4b637567e3
commit
03d75816a0
2 changed files with 14 additions and 9 deletions
|
|
@ -185,6 +185,11 @@ func TestTransformImage(t *testing.T) {
|
|||
Options{FlipHorizontal: true, FlipVertical: true},
|
||||
newImage(2, 2, yellow, blue, green, red),
|
||||
},
|
||||
{
|
||||
ref,
|
||||
Options{Rotate: 90, FlipHorizontal: true},
|
||||
newImage(2, 2, yellow, green, blue, red),
|
||||
},
|
||||
|
||||
// resizing
|
||||
{ // can't resize larger than original image
|
||||
|
|
@ -247,7 +252,7 @@ func TestTransformImage(t *testing.T) {
|
|||
{
|
||||
newImage(4, 2, red, red, blue, blue, red, red, blue, blue),
|
||||
Options{Width: 2, Height: 1, Fit: true, FlipHorizontal: true, Rotate: 90},
|
||||
newImage(1, 2, red, blue),
|
||||
newImage(1, 2, blue, red),
|
||||
},
|
||||
|
||||
// crop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue