Skip to content
Extensible Metadata Platform (XMP) parser
Ruby Shell
Latest commit fbbe683 Jul 28, 2011 @wpiekutowski wpiekutowski Add travis-ci config
Failed to load latest commit information.
lib Bump version to 0.2.0 Jul 28, 2011
spec Test xmp against xmp2.xml Feb 26, 2011
.rspec Enable color in RSpec output Feb 26, 2011
.travis.yml Add travis-ci config Jul 28, 2011
Gemfile Initial commit Feb 26, 2011
README.rdoc Add homepage and git repo info Feb 26, 2011
Rakefile Setup RSpec Feb 26, 2011
xmp.gemspec Add rake as a development dependency Jul 28, 2011


xmp - Extensible Metadata Platform (XMP) parser

XMP provides object oriented interface to XMP data ( XMP data can be found in PDF, JPEG, GIF, PNG, and many other formats.

Supported formats

Currently only JPEG is supported through exifr gem.

JPEG example

# gem install xmp exifr
require 'xmp'
require 'exifr'
require 'open-uri'

img ='spec/fixtures/multiple-app1.jpg')
xmp = XMP.parse(img)
xmp.dc.subject #=> ["something interesting"]

# explore XMP data
xmp.namespaces.each do |namespace_name|
  namespace = xmp.send(namespace_name)
  namespace.attributes.each do |attr|
    puts "#{namespace_name}.#{attr}: " + namespace.send(attr).inspect


gem install xmp
# for JPEG support
gem install exifr -v ">=1.0.4"


  • Ruby 1.8.7, 1.9.2

  • Nokogiri 1.4

  • EXIFR >= 1.0.4


Fork it at

# install development dependencies
bundle install
# run specs
rake spec


Ruby's license.

Copyright © 2011 Wojciech Piekutowski, AmberBit (

Something went wrong with that request. Please try again.