D
D
Dmitry2015-07-18 19:41:29
Django
Dmitry, 2015-07-18 19:41:29

How to setup autoresize in django-ckeditor?

I didn't find the answer in the doc.
Tell me how to set up autoresize when uploading photos? Downloading it through the built-in photo manager in the editor itself.
For example, a photo of 3000x2000 in size is loaded, then immediately resize it to 1000 in width.
Or tell me what to override, where to stick this functionality so as not to change the source code.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-07-18
@sim3x

in the save() model, override and resave the image
stackoverflow.com/a/24373874
stackoverflow.com/questions/24373341/django-image-...
or leave as is and use https://pypi.python.org/pypi in the template /sorl-thumbnail/12.3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question