Crop Mode • crop

Controls how the output image is cropped to fit inside its target dimensions. Both the w and h parameters need to be provided.

The default behavior is to crop from the center of the image.

Values: center, top, right,top, right, right,bottom, bottom, left,bottom, left, left,top, entropy, attention

Default: center

Directional Croppping

The directional cropping values such as top, right, left, bottom allow you to specify where the crop begins. So if you choose top for example the crop will start at the top and move down.

Experimental Strategy-Based Approach

These values resize so one dimension is at its target length then repeatedly ranks edge regions, discarding the edge with the lowest score based on the selected strategy.

  • entropy: focus on the region where the image feels the busiest using Shannon entropy
  • attention: focus on the region with the highest luminance frequency, colour saturation and presence of skin tones.

left

top

bottom

entropy

attention

OMGIMG
©2020-2022
Still have some questions?
We do whatever it takes to make sure our customer service is the best in the business. Please email us and we'll help you out as soon as we can. We are in the GMT+2 time zone.
Contact us on: hello@omgimg.net
Please read our privacy policy, our terms of service here.