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 2007-07-19 17:17:55-07 by vik
iptc data
Dear Phil & fellow exiftool users,

I am having trouble parsing the iptc metadata from the jpeg image below with my program and adobe photoshop. I am unable to find the start tag which is 0x1c02. Exiftool seems to be parsing the iptc data correctly.

I would really appreciate if you could let me know how exiftool is able to parse the iptc data from this image.

link below

http://download.yousendit.com/43B40C6A67EA8EBC

regards,

Vik
Direct Responses: 5759 | Write a response
Posted on 2007-07-19 17:35:18-07 by exiftool in response to 5758
Re: iptc data
When I first opened this file, I thought "here's the problem...": The file contains an AFCP trailer which is able to store IPTC information. However, in your case the AFCP trailer only contains thumbnail and preview images, and not IPTC information.

The IPTC in this file is stored in the usual manner (inside the 0x0404 resource of the Photoshop IRB resources of APP13). You say that you are looking for the start tag 0x1c02. This tag actually occurs at an offset of 0x19c5, but in order to properly locate this you need to parse the JPEG segments then the Photoshop IRB resources . Perhaps I can help more if I know more about how you are parsing the file.

- Phil
Direct Responses: 5764 | 5765 | 5766 | 5767 | 5768 | Write a response
Posted on 2007-07-19 20:42:34-07 by vik in response to 5759
Re: iptc data

Dear Phil thank you for your fast response,

I am using Thomas Barregren's extraction code javax.imageio.ImageReader; class to read the metadata from the image public Node readNativeMetadata() throws IOException { ImageReader reader; IIOMetadata metadata = reader.getImageMetadata(0); if(metadata == null) return null; return metadata.getAsTree(metadata.getNativeMetadataFormatName()); }

the above IIOMetadata contains marker sequences as an arraylist

looking forward to your response,

vik
Direct Responses: Write a response
Posted on 2007-07-19 20:53:10-07 by vik in response to 5759
Re: iptc data

Dear Phil thank you for your fast response,

I am using Thomas Barregren's extraction code javax.imageio.ImageReader; class to read the metadata from the image public Node readNativeMetadata() throws IOException { ImageReader reader; IIOMetadata metadata = reader.getImageMetadata(0); if(metadata == null) return null; return metadata.getAsTree(metadata.getNativeMetadataFormatName()); }

the above IIOMetadata contains marker sequences as an arraylist

looking forward to your response,

vik
Direct Responses: Write a response
Posted on 2007-07-19 20:53:36-07 by vik in response to 5759
Re: iptc data

Dear Phil thank you for your fast response,

I am using Thomas Barregren's extraction code javax.imageio.ImageReader; class to read the metadata from the image public Node readNativeMetadata() throws IOException { ImageReader reader; IIOMetadata metadata = reader.getImageMetadata(0); if(metadata == null) return null; return metadata.getAsTree(metadata.getNativeMetadataFormatName()); }

the above IIOMetadata contains marker sequences as an arraylist

looking forward to your response,

vik
Direct Responses: Write a response
Posted on 2007-07-19 20:53:47-07 by vik in response to 5759
Re: iptc data

Dear Phil thank you for your fast response,

I am using Thomas Barregren's extraction code javax.imageio.ImageReader; class to read the metadata from the image public Node readNativeMetadata() throws IOException { ImageReader reader; IIOMetadata metadata = reader.getImageMetadata(0); if(metadata == null) return null; return metadata.getAsTree(metadata.getNativeMetadataFormatName()); }

the above IIOMetadata contains marker sequences as an arraylist

looking forward to your response,

vik
Direct Responses: Write a response
Posted on 2007-07-19 20:53:56-07 by vik in response to 5759
Re: iptc data

Dear Phil thank you for your fast response,

I am using Thomas Barregren's extraction code javax.imageio.ImageReader; class to read the metadata from the image public Node readNativeMetadata() throws IOException { ImageReader reader; IIOMetadata metadata = reader.getImageMetadata(0); if(metadata == null) return null; return metadata.getAsTree(metadata.getNativeMetadataFormatName()); }

the above IIOMetadata contains marker sequences as an arraylist

looking forward to your response,

vik
Direct Responses: 5770 | Write a response
Posted on 2007-07-19 23:14:49-07 by exiftool in response to 5768
Re: iptc data
I'm sorry, I'm not familiar with this Java library. I can help with low-level questions, but for problems like this you will have to go to the writer of the utility (Thomas Barrengren) for support. If either you or Thomas have any questions about JPEG file format and IPTC structure, and how ExifTool reads this information, I would be happy to answer them.

- Phil
Direct Responses: 5776 | 5779 | 5780 | Write a response
Posted on 2007-07-20 13:32:33-07 by vik in response to 5770
Re: iptc data

Dear Phil,

I mistakenly linked the wrong file. The following file is the one I am having trouble with. I would really appreciate if you can check and see how exiftool is handling the file. I cannot find the start tag 0x1c02 in this file

http://download.yousendit.com/D4E472BC7F51AEC3

again, I am very sorry for the mistake

looking forward to your response

vik

Direct Responses: 5777 | Write a response
Posted on 2007-07-20 14:06:19-07 by exiftool in response to 5776
Re: iptc data
Ah ha! There you go! The IPTC information is in the AFCP trailer of this file. This is not the normal place to find IPTC, and most applications won't find it here. See the AFCP specification for more details.

- Phil
Direct Responses: Write a response
Posted on 2007-07-20 14:46:42-07 by vik in response to 5770
Re: iptc data

Dear Phil,

I mistakenly linked the wrong file. The following file is the one I am having trouble with. I would really appreciate if you can check and see how exiftool is handling the file. I cannot find the start tag 0x1c02 in this file

http://download.yousendit.com/D4E472BC7F51AEC3

again, I am very sorry for the mistake

looking forward to your response

vik

Direct Responses: Write a response
Posted on 2007-07-20 14:46:51-07 by vik in response to 5770
Re: iptc data

Dear Phil,

I mistakenly linked the wrong file. The following file is the one I am having trouble with. I would really appreciate if you can check and see how exiftool is handling the file. I cannot find the start tag 0x1c02 in this file

http://download.yousendit.com/D4E472BC7F51AEC3

again, I am very sorry for the mistake

looking forward to your response

vik

Direct Responses: 5781 | Write a response
Posted on 2007-07-20 14:52:23-07 by exiftool in response to 5780
Re: iptc data
See my response above. (And please don't access this page using via your browser history -- it re-submits your post.)
Direct Responses: Write a response