Home > Software engineering >  How to decode xmp/xml image data?
How to decode xmp/xml image data?

Time:08-18

I am currently fiddling around with metadata and generally how to write/read it. In order to get a better understanding of it, I try to decode various files. In this case I have an .indd (Adobe InDesign) document that apparently has an image stored in its meta files. Now I wonder if it's possible to decode it and see the image somehow.

If I run it through a base64 decoder it shows some words like "Photoshop", "JFIF", ... but mainly gibberish.

Do you have an idea how this image might be encrypted and what steps it takes to decrpyt it?

Thank you a lot!

<xmp:PageInfo>
        <rdf:Seq>
           <rdf:li rdf:parseType="Resource">
              <xmpTPg:PageNumber>1</xmpTPg:PageNumber>
              <xmpGImg:format>JPEG</xmpGImg:format>
              <xmpGImg:width>256</xmpGImg:width>
              <xmpGImg:height>256</xmpGImg:height>
              <xmpGImg:image>/9j/4AAQSkZJRgABAgEASABIAAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNA 0AAAAAABAASAAAAAEA&#xA;AQBIAAAAAQAB/ 4AE0Fkb2JlAGQAAAAAAQUAAklE/9sAhAAKBwcHBwcKBwcKDgkJCQ4RDAsLDBEU&#xA;EBAQEBAUEQ8RERERDxERFxoaGhcRHyEhISEfKy0tLSsyMjIyMjIyMjIyAQsJCQ4MDh8XFx8rIx0j&#xA;KzIrKysrMjIyMjIyMjIyMjIyMjIyMjI Pj4 PjJAQEBAQEBAQEBAQEBAQEBAQEBAQED/wAARCAEA&#xA;ALUDAREAAhEBAxEB/8QBogAAAAcBAQEBAQAAAAAAAAAABAUDAgYBAAcICQoLAQACAgMBAQEBAQAA&#xA;AAAAAAABAAIDBAUGBwgJCgsQAAIBAwMCBAIGBwMEAgYCcwECAxEEAAUhEjFBUQYTYSJxgRQykaEH&#xA;FbFCI8FS0eEzFmLwJHKC8SVDNFOSorJjc8I1RCeTo7M2F1RkdMPS4ggmgwkKGBmElEVGpLRW01Uo&#xA;GvLj88TU5PRldYWVpbXF1eX1ZnaGlqa2xtbm9jdHV2d3h5ent8fX5/c4SFhoeIiYqLjI2Oj4KTlJ&#xA;WWl5iZm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M/J//V 0&#xA;3/pMg/6qYq7/ABn5P/6v2m/9JkH/AFUxV3 M/J//AFftN/6TIP8Aqpirv8Z T/8Aq/ab/wBJkH/V&#xA;TFXf4z8n/wDV 03/AKTIP qmKu/xn5P/AOr9pv8A0mQf9VMVd/jPyf8A9X7Tf kyD/qpirv8Z T/&#xA;APq/ab/0mQf9VMVd/jPyf/1ftN/6TIP qmKu/wAZ T/ r9pv/SZB/wBVMVd/jPyf/wBX7Tf kyD/&#xA;AKqYq7/Gfk//AKv2m/8ASZB/1UxV3 M/J/8A1ftN/wCkyD/qpirv8Z T/wDq/ab/ANJkH/VTFXf4&#xA;z8n/APV 03/pMg/6qYq7/Gfk/wD6v2m/9JkH/VTFXf4z8n/9X7Tf kyD/qpirv8AGfk//q/ab/0m&#xA;Qf8AVTFXf4z8n/8AV 03/pMg/wCqmKu/xn5P/wCr9pv/AEmQf9VMVd/jPyf/ANX7Tf8ApMg/6qYq&#xA;7/Gfk/8A6v2m/wDSZB/1UxV//9k=</xmpGImg:image>
           </rdf:li>
        </rdf:Seq>
     </xmp:PageInfo>

CodePudding user response:

Oh, I found the solution. According to this post (https://stackoverflow.com/a/5541237/13174465) the characters &#xA; are encoded HTML new lines. I replaced those characters with a new line and was able to decode the data. An online tool that converts base64 to jpeg then did the job. Turns out that the was the thing that I missed out.

  • Related