A
A
Alexander Gorokhov2015-01-29 21:00:35
Django
Alexander Gorokhov, 2015-01-29 21:00:35

How to properly implement different image sizes?

The user on the site has an avatar. There are places on the site where you want to display the user's avatar of a small size (20x20). So, how to organize all this business? When a user uploads a new avatar, create copies with the required sizes, or compress on the fly for each request (Ha-Ha)? Or give the original everywhere, and then the browser compresses the path through css to the desired size?
I am working on nginx-django. Maybe they already have ready-made solutions for such things?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2015-01-29
@sashgorokhov

Maybe sorl will work for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question