Thread

Posted on Fri Oct 6 03:50:01 2006 by 00coday
Error writing IPTC-XMP data
I am getting two different errors when trying to write IPTC/XMP data to the file at: www.o-day.net/test/images/4176355

If I give the file a .jpg extension, the exiftool reports a "Format error in file" error. If I remove the extension I get a "Error parsing XMP" error.

I get no error when I try to read the IPTC data from the file. No XMP data comes out at all.

I know we worked through something similar to this before and there was an update made that allowed these types of files to be written to.

Any thoughts?
Direct Responses: 3219 | Write a response
Posted on Fri Oct 6 15:02:01 2006 by exiftool in response to 3216
Re: Error writing IPTC-XMP data
Thanks for the sample. The key is in the warning you get when reading the image:

Warning : Skipped unknown 38 byte header

There are 38 bytes before the start of the JPEG image in this file. For this reason, ExifTool will not rewrite the image. If you remove the leading 38 bytes, then you can re-write the image without errors.

- Phil
Direct Responses: 3225 | 3227 | Write a response
Posted on Fri Oct 6 23:16:38 2006 by 00coday in response to 3219
Re: Error writing IPTC-XMP data
It seems to me I ran into this before. The tool was updated to skip all headers before the jpeg image in the file (v6.04 I think). Has that been removed?
Direct Responses: 3226 | Write a response
Posted on Fri Oct 6 23:41:55 2006 by exiftool in response to 3225
Re: Error writing IPTC-XMP data
That is true. I think you were the reason I added the ability to read images like this. (here is the thread.)

But I don't think I ever added the ability to write them too.

- Phil
Write a response
Posted on Fri Oct 6 23:47:13 2006 by 00coday in response to 3219
Re: Error writing IPTC-XMP data
It seems to me I ran into this before. The tool was updated to skip all headers before the jpeg image in the file (v6.04 I think). Has that been removed?
Write a response