mirror of
https://github.com/h2non/imaginary.git
synced 2026-05-29 11:18:41 +02:00
feat(docs): add rotate param in endpoints
This commit is contained in:
@@ -440,6 +440,7 @@ Crop the image by a given width or height. Image ratio is maintained
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -461,6 +462,7 @@ Resize an image by width or height. Image aspect ratio is maintained
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -479,6 +481,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -501,6 +504,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -520,6 +524,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -538,6 +543,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -609,6 +615,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
@@ -633,6 +640,7 @@ Accepts: `image/*, multipart/form-data`. Content-Type: `image/*`
|
||||
- file `string` - Only GET method and if the `-mount` flag is present
|
||||
- url `string` - Only GET method and if the `-enable-url-source` flag is present
|
||||
- force `bool`
|
||||
- rotate `int`
|
||||
- norotation `bool`
|
||||
- noprofile `bool`
|
||||
- colorspace `string`
|
||||
|
||||
@@ -33,7 +33,6 @@ type ImageOptions struct {
|
||||
|
||||
// BimgOptions creates a new bimg compatible options struct mapping the fields properly
|
||||
func BimgOptions(o ImageOptions) bimg.Options {
|
||||
debug("Options: %#v", o)
|
||||
return bimg.Options{
|
||||
Width: o.Width,
|
||||
Height: o.Height,
|
||||
|
||||
Reference in New Issue
Block a user