Error in creating JPEG image from source.

See all posts See thread Reply

Re: Error in creating JPEG image from source. new!
by Steve, 12 years, 6 months ago
Same deal for me with a PNG file. The file is corrupt I'm sure but this brought my system to a halt. Is there a way to test a file compatibility before doing a process call? So that I can let users know the file is faulty before my system tries to resize it?

Do you want me to send you my broken png?Reply
Re: Error in creating JPEG image from source. new!
by colin, 12 years, 5 months ago
There isn't really a way to check whether the file is corrupted or not. It could be possible, but would be a quite large endeavor, and in fact will probably amount to load it with GD to check it, which is actually what seems to be causing problems anyway.

Yes, please, send me the corrupted file, I'll have a look at it.Reply