mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 12:56:23 +02:00
add options to flip horizontally and vertically
This commit is contained in:
parent
d506fc6881
commit
a039c1bbca
4 changed files with 36 additions and 10 deletions
|
|
@ -84,27 +84,27 @@ func TestNewRequest(t *testing.T) {
|
|||
},
|
||||
{
|
||||
"http://localhost/1x/http://example.com/",
|
||||
"http://example.com/", &data.Options{1, 0, false}, false,
|
||||
"http://example.com/", &data.Options{1, 0, false, 0, false, false}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/x1/http://example.com/",
|
||||
"http://example.com/", &data.Options{0, 1, false}, false,
|
||||
"http://example.com/", &data.Options{0, 1, false, 0, false, false}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/1x2/http://example.com/",
|
||||
"http://example.com/", &data.Options{1, 2, false}, false,
|
||||
"http://example.com/", &data.Options{1, 2, false, 0, false, false}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/0.1x0.2/http://example.com/",
|
||||
"http://example.com/", &data.Options{0.1, 0.2, false, 0, false, false}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/,fit/http://example.com/",
|
||||
"http://example.com/", &data.Options{0, 0, true}, false,
|
||||
"http://example.com/", &data.Options{0, 0, true, 0, false, false}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/1x2,fit/http://example.com/",
|
||||
"http://example.com/", &data.Options{1, 2, true}, false,
|
||||
},
|
||||
{
|
||||
"http://localhost/0.1x0.2,fit/http://example.com/",
|
||||
"http://example.com/", &data.Options{0.1, 0.2, true}, false,
|
||||
"http://localhost/1x2,fit,r=90,fv,fh/http://example.com/",
|
||||
"http://example.com/", &data.Options{1, 2, true, 90, true, true}, false,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue