ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:07 AM

Title: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 17:17:55-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by exiftool on 2007-07-19 17:35:18-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 20:42:34-07]

Dear Phil thank you for your fast response,

Code:
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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 20:53:10-07]

Dear Phil thank you for your fast response,

Code:
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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 20:53:36-07]

Dear Phil thank you for your fast response,

Code:
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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 20:53:47-07]

Dear Phil thank you for your fast response,

Code:
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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-19 20:53:56-07]

Dear Phil thank you for your fast response,

Code:
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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by exiftool on 2007-07-19 23:14:49-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-20 13:32:33-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by exiftool on 2007-07-20 14:06:19-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-20 14:46:42-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by vik on 2007-07-20 14:46:51-07]

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
Title: Re: iptc data
Post by: Archive on May 12, 2010, 08:54:07 AM
[Originally posted by exiftool on 2007-07-20 14:52:23-07]

See my response above.  (And please don't access this page using
via your browser history -- it re-submits your post.)