Image.Options.Crop (image v0.62.0)
View SourceOptions and option validation for Image.crop/5.
Summary
Types
Indicates how to determine where to crop an image to fill a target area.
Options applicable to cropping an image.
Functions
Validates options to Iamge.crop/5.
Types
@type crop_focus() :: :none | :center | :entropy | :attention | :low | :high
Indicates how to determine where to crop an image to fill a target area.
:nonemeans the image will be reduced to fit the required bounding box and no cropping will occur.:centermeans crop from the center of the image. The central part of the image will be returned, cropped to fill the bounding box.:entropyuses an entropy measure.:attentionmeans crop the image by looking for features likely to draw human attention.:lowmeans position the crop towards the low coordinate. This means the bottom part of the image remains after the crop.:highmeans position the crop towards the high coordinate. This means the top part of the image remains after the crop.
@type crop_options() :: []
Options applicable to cropping an image.
Currently there are no options.