Resize
It can be used to resize the image, set fixed dimensions or maximum dimensions and preserve the aspect ratio.
Parameter | Possible value | Description |
---|---|---|
?w=100 | Integer size in px | Target width in pixels |
?h=100 | Integer size in px | Target height in pixels |
?fr=on | "on" for use | Fixed aspect ratio. The width and height will be taken as the maximum possible values. |
?fillbg=FF0000 | FF0000 (hex) - default is the color of the first pixel of the original image. | If new areas are created during modification, they will be filled with this color. |
?alpha=50 | 0 - 100 | Color intensity of the new areas - 0 means transparent. |
Example
https://[API-KEY].imagedit.io/v1/https://yourdomain.com/images/img.png?w=100&h=50&fr=on&fillbg=FF0000&alpha=50