-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
The warning only shows up when None is set in aspect_ratios.
django-pictures/pictures/models.py
Line 294 in 721cd80
| if None in self.aspect_ratios and not (self.width_field and self.height_field): |
However, if I follow the README example but only want to have cropped images by setting aspect_ratios=["16/9"] I do not get the warning, but end up with performance problems as
{% picture profile.picture img_alt="Spiderman" ratio="16/9" %}
will result in a hit to width and height, which involves a load of the image from storage.
Do you think that the warning should always be returned if not (self.width_field and self.height_field):?
Metadata
Metadata
Assignees
Labels
No labels