N
N
Nubbin2018-10-10 09:52:20
Django
Nubbin, 2018-10-10 09:52:20

Django Model creating a minified version?

Good afternoon, how to create a smaller version of a photo in a django model.
For example:
I am uploading a base photo and I would like that when saving to, 2 more photos of different sizes are created and that the names are saved in the database.
Used "imagekit, django-stdimage" don't help. What library can do this

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-10-10
@Nubbin

https://github.com/SmileyChris/easy-thumbnails

N
Nick V, 2018-10-10
@half-life

I'm not sure, but maybe this battery will help? https://github.com/respondcreate/django-versatilei...

V
Vadim Shatalov, 2018-10-10
@netpastor

About django-stdimage As
I understand it, I didn’t suit it only because I didn’t save the names for the preview in the database? But they are not needed in the database, then everywhere where you need it - in templates, views - you can easily get to the desired preview through the specified alias

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question