abstract_api.image_processing.strategies.fit package#
Submodules#
Module contents#
- class abstract_api.image_processing.strategies.fit.CropMode(value)[source]#
Bases:
EnumDirection 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.fit.Fit(*, height: int, **kwargs)[source]#
Bases:
HeightMixin,WidthMixin,CropModeMixin,BaseStrategyCrop and resize the image to fit the desired width and height.