imgflo / imgflo-server

HTTP image processing server based on imgflo
48 stars 7 forks source link

Input images too large can cause out-of-memory #46

Open jonnor opened 8 years ago

jonnor commented 8 years ago

For instance when processing the 105 megapixel image here: https://the-grid-user-content.s3-us-west-2.amazonaws.com/a15e878f-bdf5-4b83-83dc-2e90dbfb2233.jpg through NoFlo like the instagram filters. Easily blows up on a 512MB or even 1GB dyno.

Heroku will in this case kill off the worker, which can cause uptime problems.

jonnor commented 8 years ago

Either need to check-and-deny such images before processing, or check-and-rescale them.