IPTCR

Build Status

IPTC Reader in Ruby. Parse IPTC data extracted from an image into rich data types and respecting string encodings.

Usage

Use something like imagemagick to extract the IPTC, then read it with this class:

require "iptcr"
raw_iptc = `convert images/ian.jpg iptc:-`
iptc = IPTCR.parse(iptc)
iptc["ObjectName"] # => "Ian"
iptc.to_hash # => {"ObjectName" => "Ian", "ColorSequence" => 32, ...}

Thanks

Inspired by ExifTool.

License

MIT license, see LICENSE.