Log in

View Full Version : PHP image resize errors with digital pictures



zellstar
03-06-2007, 04:02 PM
I am having an issue with PHP's built-in image resizing functionality. For most photographs it works fine, but there is a small section of digital pictures that fail out the function. The best I can tell, this is due to incompatable EXIF data in the images in question. I found a script called jpg_clean that is supposed to remove all superfluous data from JPEG images, but I cant seem to get it to work right. If anyone has a solution to this or a similar problem, input would be greatly appreciated.

Demonicman
03-06-2007, 04:47 PM
i believe there is a jpeg image converter somewhere on d.d.? i came accross it when i was just looking around

it converts it to a gif, which is more recognizable by php

djr33
03-06-2007, 10:25 PM
It would also convert it to 256 colors.... horrible for any photos.

I think I understand the problem, but I'm not sure how to help.

Without a link to a testing page or posted code, there's not much I can do.

In the end, if you are right, then there may not be a solution until you get the clean function to work.