mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-28 06:16:25 +02:00
scaleup flag
This commit is contained in:
parent
f6e6a2cc86
commit
4e60c683b0
7 changed files with 57 additions and 15 deletions
|
|
@ -127,6 +127,11 @@ func TestTransformImage(t *testing.T) {
|
|||
Options{Width: 100, Height: 100},
|
||||
ref,
|
||||
},
|
||||
{ // can resize larger than original image
|
||||
ref,
|
||||
Options{Width: 4, Height: 4, ScaleUp: true},
|
||||
newImage(4, 4, red, red, green, green, red, red, green, green, blue, blue, yellow, yellow, blue, blue, yellow, yellow),
|
||||
},
|
||||
{ // invalid values
|
||||
ref,
|
||||
Options{Width: -1, Height: -1},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue