Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

XMP Toolkit SDK - cannot write GPano into jpeg file

New Here ,
May 04, 2021 May 04, 2021

Hello,

 

I'm using XMP Toolkit SDK on iOS, I would like to add GPano metadata to my fresh created jpeg (jpeg is created from scratch with QImage API).

 

I started from SDK code in "samples/source/ModifyingXMP.cpp", I just added this few lines :

 

// register namespace
string actualPrefix;
SXMPMeta::RegisterNamespace( "http://ns.google.com/photos/1.0/panorama/", "GPano:", &actualPrefix );

// write GPano metadata
meta.SetProperty("http://ns.google.com/photos/1.0/panorama/", "ProjectionType", "equirectangular", 0);

 

 

I use this lines to dump meta content :

 

SXMPIterator iter( meta );
string schemaNS,propPath,propVal;
while( iter.Next( &schemaNS, &propPath, &propVal )){
    cout << schemaNS << " " << propPath << " = " << propVal << endl;
}

 

 

When I dump meta, I have this :

 

http://purl.org/dc/elements/1.1/  = 
http://purl.org/dc/elements/1.1/ dc:creator = 
http://purl.org/dc/elements/1.1/ dc:creator[1] = Author Name
http://purl.org/dc/elements/1.1/ dc:creator[2] = Another Author Name
http://purl.org/dc/elements/1.1/ dc:title = 
http://purl.org/dc/elements/1.1/ dc:title[1] = An English title
http://purl.org/dc/elements/1.1/ dc:title[1]/?xml:lang = x-default
http://purl.org/dc/elements/1.1/ dc:title[2] = An English title
http://purl.org/dc/elements/1.1/ dc:title[2]/?xml:lang = en-US
http://purl.org/dc/elements/1.1/ dc:title[3] = Un titre Francais
http://purl.org/dc/elements/1.1/ dc:title[3]/?xml:lang = fr-FR
http://ns.google.com/photos/1.0/panorama/  = 
http://ns.google.com/photos/1.0/panorama/ GPano:ProjectionType = equirectangular

 

 

So it is ok I see the GPano property when I dump the meta.

But my problem is that I don't retrieve GPano metadata in exported file while I see correctly other XMP properties added by the sample code. I use ApolloOne app or thexifer website to check file metadata.

 

It looks like GPano property is not exported to file, is it a bug or my misunderstanding?

TOPICS
Developers , SDKs
441
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 11, 2021 May 11, 2021

Hi Loic,

 

I've heard a number of complaints about the XMP library failing to load, or otherwise not working correctly, in recent builds of InDesign in particular. I've filed a bug internally as CEP-2384...  although your problem is with a C++ SDK and not CEP, which I'm not that familiar with 🤔...

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 11, 2021 May 11, 2021
LATEST

Thank you for answering, I opened an issue on github.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines