U
U
un1t2015-10-05 12:47:36
Django
un1t, 2015-10-05 12:47:36

What is the best image resizer for Django and S3?

My images are stored on S3. The best option is when we generate resized images of the required sizes when saving.
sorl.thumbnail - I used to use it, but at one time there was a problem with generating a huge number of SQL queries. I don't know if they solved this problem and if it works fine with S3.
easy-thumbnails - looks good, might be worth a try.
In general, advise what to resize.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey K, 2015-10-05
@mututunus

sorl.thumbnail works fine with s3. For KVStore, it's better to use redis rather than a database.

M
marazmiki, 2015-10-05
@marazmiki

Based on personal experience: sorl-thumbnail is a bloodsucker. Not because it’s shaking somehow wrong, but because it periodically loses the cache, generates thumbnails anew, and the old ones remain lonely in their old place.
When using cloud storage with payment for resources, it is wildly annoying. Again, from a personal point of view: on a project that had millions of images, clearing the cache stored in Selectel Storage took almost two months of continuous work. How much extra money was spent on paying for this storage, I don’t really want to remember.
Ultimately, for that project, I used thumbor , a service for generating thumbnails (it’s true, it’s standalone, but there seem to be attempts to transfer its storage to S3). For ~ half a year of use, the thoughts are: in comparison with the sorl, heaven and earth. And the speed is many times greater, and the RESTful API is built-in, and the image crop algorithms are subjectively smarter.
It is, of course, a little more complicated, but it's worth it. I highly recommend mastering it.

L
Leo, 2015-10-05
@STLEON

What don't you like about the one you wrote? I use it in one project, everything works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question