You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload a rectangle image (like 4000px2000px), the field adds a white border around it to get a 10001000px image whereas I want 1000px to be the maximum, not the exact size.
Hi!
I want to specify a maximum size for my images (let's say 1000px width and 1000px height). Then I did this:
When I upload a rectangle image (like 4000px2000px), the field adds a white border around it to get a 10001000px image whereas I want 1000px to be the maximum, not the exact size.
The problem is here: https://github.com/agusmakmun/django-image-optimizer/blob/master/image_optimizer/utils.py#L68
Why don't you use the output of
resizeimage
directly, which has the right size?Thanks
The text was updated successfully, but these errors were encountered: