I've been playing around with a script that I found online that allows you to upload a .jpg image to a temp directory and then it uses the pnmscale command to resize the image to a given width and height. The problem I'm having is when I upload relatively small files (anything under 30kb or so) it works fine and resizes the image, but as soon as I try to upload a larger file (I've been trying to upload some around 80kb to 140kb), it seems to time out and gives me an error. Is there a maximum file size that you can use with the pnmscale command, or is there maybe an easier way to do this that I'm not finding?
Thanks.