Sha256: 87c08c5ef572ebf5343bd287d6fcca0ea73e4e0920cebb01de0c2945963377ca
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
begin require 'exifr/jpeg' rescue LoadError => exception raise exception unless exception.path == 'exifr/jpeg' end module XMP::Handler class ExifrJPEG def call(object) return unless defined?(EXIFR::JPEG) && object.is_a?(EXIFR::JPEG) xmp_chunk = object.app1s.find { |a| a =~ %r|\Ahttp://ns.adobe.com/xap/1.0/| } xmp_chunk ? xmp_chunk.split("\000")[1] : XMP::Document.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmp-2.0.0 | lib/xmp/handler/exifr_jpeg.rb |