I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-10-06 00:50:01-07 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 2006-10-06 12:02:01-07 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 2006-10-06 20:16:38-07 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 2006-10-06 20:41:55-07 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
Direct Responses: Write a response
Posted on 2006-10-06 20:47:13-07 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: Write a response