lundi 16 février 2015

Auto image resizing/compressing using python/django

I'm working on a responsive website that uses Django and a lot of the content is static. Most of this content are photos of high resolution and because of this, it takes too much time to load.


Is there any way (using python/django) to make it so that to load such an image, a server request is made and then a function automatically resizes the image to the size that it needs to be (bigger for a desktop, smaller for a smartphone, etc) or compresses the image so that it doesn't take so much time to load?





Aucun commentaire:

Enregistrer un commentaire