[cgiapp] Data validation of file uploads

Rhesa Rozendaal perl at rhesa.com
Wed Sep 22 17:37:24 EDT 2010


On 09/22/2010 09:42 PM, Nicholas Bamber wrote:
> I think I have been completely misunderstood.
>
> Please explain how you can dynamically resize an image without looking
> at the entire data in memory.

We use this imagemagick feature:

   convert 'image.jpg[120x120]' thumbnail.png

By pre-resizing on read, we save tons of cpu and ram usage per image. 
Works great even for huge 25mp images (if a bit slow).

rhesa


More information about the cgiapp mailing list