img-fit=scale-down
Image will be shrunk in size to fully fit within the given width or height, but won’t be enlarged.
img-fit=contain
Image will be resized (shrunk or enlarged) to be as large as possible within the given width or height while preserving the aspect ratio.
img-fit=cover
Image will be resized to exactly fill the entire area specified by width and height, and will cropped if necessary.
img-fit=crop
Image will be shrunk and cropped to fit within the area specified by width and height. The image won’t be enlarged. For images smaller than the given dimensions it’s the same as scale-down. For images larger than the given dimensions, it’s the same as cover.
img-fit=pad
Image will be resized (shrunk or enlarged) to be as large as possible within the given width or height while preserving the aspect ratio, and the extra area will be filled with a background color (white by default). Transparent background may be very expensive, and it’s better to use fit=contain and CSS object-fit: contain property instead.
fit=cover
, specifies the most important side or point in the image that shouldn’t be cropped off.img-gravity=auto
The point will be guessed by looking for areas that stand out the most from image background
img-gravity=side
and img-gravity=XxY
If a side (left, right, top, bottom) or coordinates specified on a scale from 0.0 (top or left) to 1.0 (bottom or right), 0.5 being the center. The X and Y coordinates are separated by lowercase x, e.g. 0x1 means left and bottom, 0.5x0.5 is the center, 0.5x0.33 is a point in the top third of the image.
img-onerror=redirect
to redirect to the unresized source image URL. This may be useful in case some images require user authentication and cannot be fetched. This option shouldn’t be used if the source images may be very large. This option is ignored if the image is from another domain (subdomains are OK).img-onerror=redirect
Redirects to original source urlimg-metadata=keep
Preserve most of the image metadata (including GPS location) when possible.
img-metadata=copyright
Discard all metadata except EXIF copyright tag. This is the default for JPEG images. img-metadata=none Discard all invisible metadata.
get
and createAccessLink
methods of the SDK.