Enums§
- Rotate
Direction - Watermark rotation direction
- Watermark
Size - Watermark size specification - either as a percentage (0.0-1.0) or pixels
Functions§
- apply_
blur - Apply Gaussian blur to an image
- apply_
watermark - Apply watermark to an image at the bottom right corner
- calculate_
contain_ dimensions - Calculate dimensions and position for “contain” mode (fit within bounds, centered) Returns (new_width, new_height, x_offset, y_offset)
- calculate_
cover_ dimensions - Calculate dimensions and position for “cover” mode (fill with overflow, centered) Returns (new_width, new_height, x_offset, y_offset)
- create_
composite_ image - Create a composite image with blurred background and sharp foreground
- create_
composite_ image_ with_ watermark - Create a composite image with optional watermark
- is_
vertical_ image - Determine if an image is vertical (height > width)
- process_
image - Process a single image file