class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I'm uploading one image and making several copies of it; full-size, tablet, mobile, tn, etc., and it's taking upwards of 30-40 seconds to process. I'm just using a photo directly off an iPhone (3,264 x 2,448), as most people will do these days.
Do you see anything here that will make this take so long? I'm using the exact same code for the other images, just changed their sizes. Processing just this block takes almost 9 seconds on an iMac 2013 model.
Do you see anything here that will make this take so long? I'm using the exact same code for the other images, just changed their sizes. Processing just this block takes almost 9 seconds on an iMac 2013 model.
Anything I can do to speed it up? Also, I'll be doing pixellation on some images too. Any tips on speeding that up?
Thanks!
Tim
It is slow indeed, but not that slow since your images are very large (a lot of pixels), and you process a lot of them in a batch.
If you really want to speed up the process, I would recomend not to use this class, which rely on GD, but to use ImageMagick.
Sill love this class and use it every chance I get. Thanks, and keep up the great work - this class has saved my butt numerous times :)