Sha256: 71ce04a2755864cdd6b3eba982b4296613c78668e566c38fe2b3a632442009e1

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

= xmp - Extensible Metadata Platform (XMP) parser

XMP provides object oriented interface to XMP data (http://en.wikipedia.org/wiki/Extensible_Metadata_Platform). 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 = EXIFR::JPEG.new('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
    end
  end

== Installation

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

== Requirements

* Ruby 1.8.7, 1.9.2
* Nokogiri 1.4
* EXIFR >= 1.0.4

== Development

Fork it at https://github.com/amberbit/xmp

  # install development dependencies
  bundle install
  # run specs
  rake spec

== License

Ruby's license.

Copyright (c) 2011 Wojciech Piekutowski, AmberBit (http://amberbit.com)

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
xmp_fixed-0.2.4 README.rdoc
xmpfixed-0.2.3 README.rdoc
xmp-fixed_prefix-0.2.2 README.rdoc
xmp-fixed_prefix-0.2.1 README.rdoc
xmp-0.2.0 README.rdoc
xmp-0.1.1 README.rdoc