Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Upload with image resizing by Image::Magick

by andye (Curate)
on Jan 21, 2009 at 11:58 UTC ( #737805=note: print w/ replies, xml ) Need Help??

in reply to Upload with image resizing by Image::Magick

The way I've done it in the past:

- receive the file upload using or Apache::Whatever

- save it (making sure the filename is untainted)

- ask image magick if the file is an image of one of the types you're willing to accept (delete it if not)

- run image magick's resizing thingy as a system call. let the web server return a page to the user, while leaving IM to get on with things (because it can take a while for big files).

Also, be aware that image magick resizing can use a lot of memory for large files. so you might want to restrict the size of the file upload.



Comment on Re: Upload with image resizing by Image::Magick

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://737805]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-11-28 10:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls