Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pasring xml values in identify #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

nleush
Copy link

@nleush nleush commented May 22, 2013

On image:
http://beta.images.theglobeandmail.com/media/mobile/images/iphone.icon.highres.png
got values to parse:

    Software: Adobe Fireworks CS3
    XML:com.adobe.xmp: <?xpacket begin="   " id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00        ">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:xmp="http://ns.adobe.com/xap/1.0/">
         <xmp:CreatorTool>Adobe Fireworks CS5 11.0.0.484 Macintosh</xmp:CreatorTool>
         <xmp:CreateDate>2010-10-18T17:05:17Z</xmp:CreateDate>
         <xmp:ModifyDate>2010-12-21T19:56:18Z</xmp:ModifyDate>
      </rdf:Description>
      <rdf:Description rdf:about=""
            xmlns:dc="http://purl.org/dc/elements/1.1/">
         <dc:format>image/png</dc:format>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta>

parseIdentify function think <x:xmpmeta is new document root and skips previous data.

Fast fix simply ignore xml tag lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant