Crate instafy

Crate instafy 

Source

Enums§

RotateDirection
Watermark rotation direction
WatermarkSize
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