Forum Moderators: coopster
Basically I need to thumbnail images that are being uploaded, I would like to resize and save them to something smaller. Is it even possible to do such in PHP without the use of GD or ImageMagic? The host is only running php 4.0.6 as well...
Thanks in advance...
ben
If not, I'd start looking for Perl/PHP modules that can do what you want. I'm not sure one even exists...
I know you'd like the files to be thumbnailed to help them download faster, but in some cases it's OK to resize images by setting their HTML width and height attributes. Get the image's actual size with getimagesize(), find the aspect ratio and reduce it to the desired size in integers. The image is still huge and slow, but it shows up OK and as long as the page isn't full of them, one slow-loading image is usually forgivable.
There is another weird option: Create a Flash movie that loads the image dynamically, and displays it within a MovieClip, then set the _width and _height attributes of the MovieClip to fit the stage. Advantages: the Flash movie loads right away (doesn't hold up the rest of the page), the large image file streams in (it will show up when it's done), and it's also more difficult for people to save the image (if that's a priority for you)
Good luck!