Compressing Images
Posted: Tue Jun 09, 2009 2:51 am
So, after years of not understanding exactly why my image resizing script for uploaded images was crashing, I finally get it (after reading through a forum which gave the few extra hints I was missing). I thought it was a problem caused by the size of the photo, in bytes, being uploaded, but now realize that when PHP loads an image as a variable it loads it like a bitmap, so 2048x2048x24 bits = 12.6 MB of variable memory alone (if that is wrong at any point, please tell me!).
After finally getting that, I still haven't solved my problem. Does anyone know of a way to keep an image compressed in any way (like how a JPEG compresses the image) for resizing, or of any stand alone scripts that will resize larger images through php? Any insight would be greatly appreciated!
After finally getting that, I still haven't solved my problem. Does anyone know of a way to keep an image compressed in any way (like how a JPEG compresses the image) for resizing, or of any stand alone scripts that will resize larger images through php? Any insight would be greatly appreciated!