Version 5.1.0
Added
- For
File
:detect_faces()
method to detect faces in images.
- For
ImageTransformation
:text()
method to allow adding text overlays to images.rect()
method to allow adding solid color overlays to images.strip_meta()
method to control the presence of EXIF metadata in the resulting image.border_radius()
method to add rounded corners.zoom_objects()
method to zoom in on objects.rasterize()
method to rasterize SVG images.detect_faces()
method, which provides face detection in images. WhileImageTransformation.detect_faces()
ensures consistency within theImageTransformation
API, you are more likely to useFile.detect_faces()
to obtain face detection results.
Changed
- Blocks have been updated to v0.36.0
- For
ImageTransformation
:- The
overlay()
andoverlay_self()
methods now treatoverlay_width
andoverlay_height
parameters as optional. - Unified
gif2video()
,gif2video_format()
, andgif2video_quality()
methods into a singlegif2video()
method. Theformat
andquality
parameters can now be accepted directly in thegif2video()
method.
- The
- Black dev dependency has been updated to 24.3.0.
Fixed
- Django forms: Any modifications made in an image editor are now correctly restored when editing the same image again. Previously, the editor state was not restored, and the original image was displayed instead. via uploadcare/blocks#615.
Deprecated
- For
ImageTransformation
:- Deprecated the separate
gif2video_format
andgif2video_quality
methods. Please use theformat
andquality
parameters directly in thegif2video
method for setting these properties.
- Deprecated the separate
Full Changelog: v5.0.1...v5.1.0