Image Endpoint
imagor endpoint is a series of URL parts which defines the image operations, followed by the image URI:
/HASH|unsafe/trim/AxB:CxD/(adaptive-)(full-)fit-in/stretch/-Ex-F/GxH:IxJ/HALIGN/VALIGN/smart/filters:NAME(ARGS):NAME(ARGS):.../IMAGE
HASHis the URL signature hash, orunsafeif unsafe mode is usedtrimremoves surrounding space in images using top-left pixel colorAxB:CxDmeans manually crop the image at left-top pointAxBand right-bottom pointCxD. Coordinates can also be provided as float values between 0 and 1 (percentage of image dimensions)fit-inmeans that the generated image should not be auto-cropped and otherwise just fit in an imaginary box specified byExF. Iffull-fit-inis specified, then the largest size is used for cropping (width instead of height, or the other way around). Ifadaptive-fit-inis specified, it inverts requested width and height if it would get a better image definitionstretchmeans resize the image toExFwithout keeping its aspect ratios-Ex-Fmeans resize the image to beExFof width per height size. The minus signs mean flip horizontally and verticallyGxH:IxJadd left-top paddingGxHand right-bottom paddingIxJHALIGNis horizontal alignment of crop. Acceptsleft,rightorcenter, defaults tocenterVALIGNis vertical alignment of crop. Acceptstop,bottomormiddle, defaults tomiddlesmartmeans using smart detection of focal pointsfiltersa pipeline of image filter operations to be applied, see filters sectionIMAGEis the image path or URI- For image URI that contains
?character, this will interfere the URL query and should be encoded withencodeURIComponentor equivalent - Base64 URLs: Use
b64:prefix to encode image URLs with special characters as base64url. This encoding is more robust if you have special characters in your image URL, and can fix encoding/signing issues in your setup. - Color image: Use
color:<color>to generate a solid color or transparent image without loading from a source. See Color Image section.
- For image URI that contains