in reply to Re: Re: Grabbing Jpeg Captions
in thread Grabbing Jpeg Captions

Since I don't know what a JPEG caption is... :)

I assume that you did a print Data::Dumper->Dumper(image_info(foo)...) and it isn't hidden in there somewhere.

What is a JPEG caption? Perhaps a patch to the Image::Info code would be appropriate.

Replies are listed 'Best First'.
Re: Re: Re: Re: Grabbing Jpeg Captions
by devmage (Initiate) on Sep 30, 2003 at 17:46 UTC
    The caption is a text description embbed in the jpeg. Its basically suppose to be a description of the image. Its part of a jpeg standard part of the IPTC Information. I found this page which had some information on it. I found a perl module JFIF::JPEG which does read captions from most of the files. Unfortunately it doesn't read all the jpegs neccessary for my tasks. The funny thing is the code I posted does get a caption if its there reguardless of what the jpeg format it was saved in. But some times if there is no caption, it just grabs a chunk of the jpeg. I've been trying to detect when it does that but it has been difficult.