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 : http://www.simplesystems.org/RMagick/doc/imageattr... And This, but it doesn't seem to work for : http://studio.imagemagick.org/pipermail/magick-use... Anyone can give me some information ? Thank you all.
on 2006-02-21 15:04
on 2006-02-21 15:13
Send a JPEG with an IPTC profile in it to rmagick AT rubyforge DOT org and I'll take a look at it.
on 2006-02-21 16:05
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
on 2006-02-21 16:14
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.
on 2006-02-21 16:36
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! :D Thank you for your proposale! Jérémy
on 2006-02-21 17:09
Oups! I was wrong finally. get_exif_by_entry only returns EXIF information, eheh dumb! :D So, is there any way with RMagick to extract, keywords, city, province, country, etc. Jérémy
on 2006-02-22 10:07
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.
on 2006-02-22 13:39
I'm currently working on it! Writing a class to format the binary IPTC string returned by RMagick.
on 2006-02-22 19:20
Ok, I've realesed a first version : http://www.blogthatweb.com/2006/02/22/ruby-on-rail... Jérémy