Project

iptcr

0.0
No commit activity in last 3 years
No release in over 3 years
Parse IPTC data extracted from an image into rich data types and respecting string encodings
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
 Project Readme

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.