Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 620 Bytes

filters.md

File metadata and controls

26 lines (18 loc) · 620 Bytes

Filters

ResizeFilter

Utility

Resize the photos with the given width and height. The final photos size are computed for avoiding distortion.

Constructor arguments

def __init__(self, max_width, max_height):
  • max_width (int): max width of the photo after resizing
  • max_height (int): max height of the photo after resizing

RotateFilter

Utility

Rotate the photos according to EXIF data.

Constructor arguments

def __init__(self, expand=True)
  • expand (bool): whether the output photo will be expanded to make it large enough to hold the entire rotated image.