Sha256: 31047fe482c8ccbfbfa8bc0d07a914eca66d5d917883403dfde0f268e7651d68
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
require 'exifr/jpeg' describe "XMP with EXIFR::JPEG" do it "should parse image given as path" do xmp = XMP.parse('spec/fixtures/multiple-app1.jpg') 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 path with upper case extension" do xmp = XMP.parse('spec/fixtures/UPPERCASE.JPG') 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::JPEG" do img = EXIFR::JPEG.new('spec/fixtures/multiple-app1.jpg') 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.jpg').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_jpeg_spec.rb |