using: imagecreatefromjpeg() to start off an image resize session.
the script does the following:
1. takes an uploaded $file and renames it, savin it to a dir (works fine, verified)
2. takes the new image and resizes it (from 300x300 to 90x90; your basic thumbnailing issue). <-- broken at this step
3. take the first image and resizes again, this time to 36x36.
error: Warning: imagecreatefromjpeg(): '/absolute/path/to/file/FILENAME.ext' is not a valid JPEG file in /path/to/script/script.php on line 41
This of course causes the script to error further at imagecopyresized().
I've read through the forums. Here's what I've found:
- GDLib is >=1.6.2
- the image is NOT too large (+2000px)
- imagemagik is not an option
- this should have taken five minutes, not five hours (literal)
- I've verified that uploaded images have been saved AND that they're jpegs (using getimagesize).
- exif_ functions don't work on this server (hell! doesn't recognize them)
- PHP Version 4.3.2
Any ideas?