Answer the question
In order to leave comments, you need to log in
How to compress an image in django easy_thumbnails?
Tell me how to compress an image proportionally to 200x200 px using django easy_thumbnails ?
In general, it is necessary that easy_thumbnails does not crop the image to the dimensions that I indicated, but make a preview from a large image into a small copy?
Now I have this:
THUMBNAIL_ALIASES = {
'': {
'images': {'size': (200, 200), 'crop': True, 'quality': 99},
},
}
<img class="primary-img" src="{{ prod.images.url }}" alt="Product" style="width: 190px; height: 150px">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question