I
I
Ivan2016-09-06 10:13:16
Django
Ivan, 2016-09-06 10:13:16

How to properly resize images using Celery?

Good day. There is a task of resizing and saving the user's image when loading.
To begin with, I convert the image to bytes and transfer it to Celery. After that Celery resizes the image and saves it.
Everything works fine on localhost. And everything is fine on the server, up to a certain point. When the image has an extension of approximately 10000x5000, wsgi crashes (it says killed in the trace). How to be? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-09-06
@ATNC

https://djangopackages.org/grids/g/thumbnails/
nginx.org/en/docs/http/ngx_http_image_filter_modul...
At 5k X 5k there may be problems with webp
Or you were banally nailed by oom killer due to lack of memory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question