Image Processing Supports Focal Point Crop
We’ve extended our Image Processing service with a new focal point crop feature! It adds to our exisiting
crop operation by allowing an image crop and an optional zoom at certain coordinates of the image. The coordinates can be absolute or relative to the image dimensions. An extra debug parameter displays the coordinates on the image in order to find the right position for the crop. Any image processing operation can be used in combination with focal point crop.
Focal point crop parameter overview
The following image processing parameters have been added to the
fpdefines the focal point functionality as part of crop.
fp-ycan either be integer between
4000or float between
1. Integer defines the absolute number of pixels on the horizontal (x) and vertical (y) axis. A float value defines the relative coordinates to the base image.
fp-zspecifies the zoom level of the cropped area.
fpdenables the debug level and displays a red hairline cross on the image.
heightparameters are both mandatory for any focal point crop operation and define the output dimensions of the cropped area.
In order to use the crop operation with focal point, the Image Processing setting needs to be
Focal point crop examples
A basic focal point crop contains the
y coordinates as well as
y coordinates can also be in absolute values:
The zoom level can be added as an extra parameter:
In the debugging mode, a red hairline cross is added to the image:
Focal point crop is a powerful feature to efficiently crop and zoom an image at exact coordinates. It only takes a few query string parameters to transform an image. If there is another feature that you’re looking for we’d love to hear your feedback on our community page.
Happy image transforming!