php iptcembed corrupting image size info
Posted on 2009-04-06
I am using iptcembed() to imbed IPTC data into JPEG images.
Occasionally the iptcembed() function corrupts the data that would normally be retrieved using getimagesize().
When this happens, the IPTC data is still available, but the function getimagesize() returns false, as if the file is not an image. This does not corrupt the image and the image still displays correctly.
My question is, does anyone know how, or if it is possible to restore this information when it becomes corrupted?