Sha256: 23b0a88cac90957e2134071845b551d65c9e4e9db932770fca2e93fd1ef6629f
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
require 'exifr/tiff' describe "XMP with EXIFR::TIFF" do it "should parse image given as path" do xmp = XMP.parse('spec/fixtures/multiple-app1.tiff') xmp.should be_instance_of(XMP::Document) xmp.namespaces.should =~ %w{dc iX pdf photoshop rdf tiff x xap xapRights} end it "should parse image given as EXIFR::TIFF" do img = EXIFR::TIFF.new('spec/fixtures/multiple-app1.tiff') xmp = XMP.parse(img) xmp.should be_instance_of(XMP::Document) xmp.namespaces.should =~ %w{dc iX pdf photoshop rdf tiff x xap xapRights} end it "should return an empty XMP::Document for an image without XMP metadata" do XMP.parse('spec/fixtures/no-xmp-metadata.tiff').should be_instance_of(XMP::Document) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmp-2.0.0 | spec/exifr_tiff_spec.rb |