kaiju_images.functions module¶
Available operations (builtin)¶
Operation |
Pillow |
Wand |
OpenCV |
|---|---|---|---|
|
✓ |
✓ |
|
|
✓ |
✓ |
|
|
✓ |
✓ |
|
|
✓ |
✓ |
|
|
✓ |
✓ |
Available operations (custom)¶
Probably they will work with PIL type images only.
Operation¶
scale(factor)
abs_scale(size)
aspect_crop(ratio, rel_point)
blur(size)
flip_horizontal()
flip_vertical()
===================================
- aspect_crop(image, ratio, rel_shift=(0.5, 0.5))[source]¶
Crop image to a new aspect ratio.
- Parameters:
image –
ratio (Tuple[int, int]) – an integer ratio of new X:Y
rel_shift – default - centered, i.e. 0.5, 0.5