Hi all,
I’m relatively new to Ruby and RMagick. I want to extract IPTC
information from JPEG files. Elements that I’ve already found are :
From RMagick, iptc_profile :
RMagick 1.15.0: class Image (attribute methods)
And
This, but it doesn’t seem to work for :
http://studio.imagemagick.org/pipermail/magick-users/2004-July/013122.html
Anyone can give me some information ?
Thank you all.
Send a JPEG with an IPTC profile in it to rmagick AT rubyforge DOT org
and I’ll take a look at it.
Before sending you an image, I want to try by myself
Can you just give me some indications on how-to achieve such a process
in Ruby with RMagick ? (if RMagick implements such features)
What I want is extracting some of these information : caption,
headline, copyright_string, etc.
Thank you,
Jérémy
It’s Ok, I’ve just found it!
RMagick can access IPTC values, via the method
get_exif_by_entry([name]).
That was too easy!
Thank you for your proposale!
Jérémy
RMagick simply provides an interface to the ImageMagick API. The doc
for the iptc_profile attribute tells you everything I know about it. If
you send me an example image I will try it myself and communicate with
the ImageMagick developers if necessary.
Oups! I was wrong finally. get_exif_by_entry only returns EXIF
information, eheh dumb!
So, is there any way with RMagick to extract, keywords, city, province,
country, etc.
Jérémy
Jérémy wrote:
So, is there any way with RMagick to extract, keywords, city, province,
country, etc.
The iptc_profile attribute of the Image class. (see post of rmagick!)
Jan
btw: rmagick AT rubyforge DOT org is the official e-mail address for the
RMagick project. They want to help you.
I’m currently working on it! Writing a class to format the binary IPTC
string returned by RMagick.