abstract_api.image_processing.strategies._mixins.crop_mode_mixin module#

class abstract_api.image_processing.strategies._mixins.crop_mode_mixin.CropMode(value)[source]#

Bases: Enum

Direction of cropping.

BOTTOM = 'b'#
BOTTOM_LEFT = 'bl'#
BOTTOM_RIGHT = 'br'#
CENTER = 'c'#
EAST = 'e'#
LEFT = 'l'#
NORTH = 'n'#
NORTH_EAST = 'ne'#
NORTH_WEST = 'nw'#
RIGHT = 'r'#
SOUTH = 's'#
SOUTH_EAST = 'se'#
SOUTH_WEST = 'sw'#
TOP = 't'#
TOP_LEFT = 'tl'#
TOP_RIGHT = 'tr'#
WEST = 'w'#
class abstract_api.image_processing.strategies._mixins.crop_mode_mixin.CropModeMixin(*, crop_mode: CropMode | str | None = None, **kwargs)[source]#

Bases: object

Crop mode mixin.

property crop_mode: CropMode | None#

Direction of cropping.

json() dict[str, int | str][source]#

Returns a dict with strategy attributes to be used with requests.