I get a "Cant fit into specified packet size" when I add my own custom field in a different name space and use "myFile.PutXMP(meta);". The Schema example in SDK dumps RDF in separate files but I want to add a new field in the metadata of an existing file. How to expand the metadata content in the file from which metadata was read?
"Cant fit into specified packet size" error when adding new metadata
Re: Include custom panel into the file
Hi,
You can create panels in two ways - Custom panels, which are created through Flex SDK and Generic Panels, which are created from XML files.
In first case you have to keep the Custom Panel package on each computer you want to see the Panel. In second case you have to keep the XML file on all computer to see the panel.
There is no way to carry this panel information with the file itself.
Thanks,
Amit
Using latest FileInfo SDK, latest Flash Builder, new project crashes in latest Bridge
I've been trying to create a custom panel in Adobe Bridge. I downloaded the XMP-FileInfo-SDK-CS6, loaded the jar file into Adobe Flash Builder 4.7 (latest version), created a new project with NO modifications, and published it to the correct Custom File Info Panels folder on Windows 7. I then restarted Bridge, opened FileInfo in a photo, but when I navigated to the new panel that I just created, it fails to load correctly and hangs the entire application. The only way to close the window is to restart Bridge.
So just to be clear -- latest SDK, latest Flash Builder, latest Bridge version, new project, no modifcation, completely crashes Bridge. The GenericPanel is about the only thing that works without problem, but it's a little too limited for what I want to do (no business logic).
Not very reassuring that this is going to work at all. Has anyone else experienced this? Is there any workaround, or update I can try instead?
Thanks.
Problems registering XMPCore and XMPFiles .dll
We have used the XMP SDK to generate both the XMPCore and XMPfiles.dll's. However they will not register using regsvr32. We built them with Visual Studio 2013, running on Windows 8.1 64bit.
Re: Using latest FileInfo SDK, latest Flash Builder, new project crashes in latest Bridge
Ok, finally got this working. Many hidden gotchas.
1. You have to make a Trust File for your custom panel. This is actually in the SDK, around page 53, so my bad -- but the problem is that there is no feedback from the Adobe application if you don't have this. The application just hangs. It should produce an error message "can't find trust file, etc.". This should not be that hard to implement.
2. The latest Flex SDK does not seem to work in Bridge CC or other similar applications. You have to use Flex SDK 3.x, apparently, and this is NOT in the documentation. Not only should you set the default SDK in Flex Builder to 3.x (I'm using 3.6) but you have to edit the build.properties file to make sure it's pointing to the correct folder, eg: C:/Program Files/Adobe/Adobe Flash Builder 4.7 (64 Bit)/sdks/3.6.0. Fortunately Flash Builder 4.7 comes with 3.6 installed. If you have an older version, it's likely to be completely different.
More info in this thread: http://forums.adobe.com/thread/1114153.
XMPFilesStatic.lib(Host_IO-Win.obj):-1: Error:LNK2001
Hey,
I get the following 6 builderrors and have no idea where to start fixing it:
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__OpenProcessToken@12
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__OpenThreadToken@16
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__MapGenericMask@8
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__AccessCheck@32
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__DuplicateToken@12
XMPFilesStatic.lib(Host_IO-Win.obj) : error LNK2001: unresolved external symbol __imp__GetFileSecurityW@20
Any ideas/hints?
Greetings,
Simon
Re: Problems registering XMPCore and XMPFiles .dll
Are the binaries 32 bit or 64 bit? If 32 bit, please see if http://support.microsoft.com/kb/282747 helps.
Re: XMPFilesStatic.lib(Host_IO-Win.obj):-1: Error:LNK2001
Nobody has any ideas?
Re: XMPFilesStatic.lib(Host_IO-Win.obj):-1: Error:LNK2001
All symbols are defined in the system library advapi32.lib.
Try searching for the symbol names on MSDN but leave out the "__imp__" part, e.g. search for OpenProcessToken.
Cheers,
Jens
DocumentAncestors Not Adhering To XMP Specification In Photoshop
Hi All,
I'm currently in the process of writing a XMP sidecar parser. However I have an issue when it comes to the Photoshop namespace. Within the speificaion it says DocumentAncestors are as follows:
photoshop:DocumentAncestors -> unordered array of Ancestor
Which would be the following XML:
<photoshop:DocumentAncestors>
<rdf:Bag>
<rdf:li rdf:parseType="Resource">
<photoshop:AncestorID>uuid:cc3c1681-88d1-41c8-8b08-8d245fa78d61</photoshop:AncestorID>
</rdf:li>
</rdf:Bag>
</photoshop:DocumentAncestors>
However the acutal ouytput I get from Photoshop CS is:
<photoshop:DocumentAncestors>
<rdf:Bag>
<rdf:li>uuid:cc3c1681-88d1-41c8-8b08-8d245fa78d61</rdf:li>
</rdf:Bag>
</photoshop:DocumentAncestors>
As you can see it is different as does not follow the specifcation, do older version of Photoshop adhere to the speification?
What to people determine the best approach is ?
Re: XMPFilesStatic.lib(Host_IO-Win.obj):-1: Error:LNK2001
Thank you for giving directions, I just did not include the windows SDK properly.
Re: Static library XMPFilesStatic throws LNK2001 errors
Hey Sunil,
because the samples compiled, I revisited all relevant the code and found #ifdef_WIN32 missing at one point. Afterwards it compiled just fine.
Thanks,
smon
"XMPFiles::GetXMP - No open file" on random files, on random occasions.
Hi!
When reading XMP data from files, the toolkit sometimes fails to open the file and I am not quite sure how to approach the problem. My method:
QStringXmpParser::getXmpContent(QStringfilePath)
{
try{
SXMPMeta::Initialize();
SXMPFiles::Initialize();
XMP_VersionInfocoreVersion;
SXMPMeta::GetVersionInfo(&coreVersion);
std::stringxmpContent;
XMP_OptionBitsopts=kXMPFiles_OpenForRead|kXMPFiles_OpenUsePacketScanning;
XMP_StringPtrfilenamePtr=(XMP_StringPtr)filePath.toUtf8();
SXMPFilesmyfile;
if(!myfile.Initialize(opts)){
qDebug()<<"FailedtoinitializeSXMPFile.";
}
if(!myfile.OpenFile(filenamePtr,kXMP_UnknownFile,opts)){
qDebug()<<"FailedtoopenSXMPFilefor"<<filePath;
}
if(!myfile.GetXMP(NULL,&xmpContent)){
qDebug()<<"NoXMPdatainfile"<<filePath;
}
SXMPFiles::Terminate();
SXMPMeta::Terminate();
returnQString::fromUtf8(xmpContent.c_str());
}catch(XMP_Error&e){
qDebug()<<"Exception:"<<e.GetErrMsg();
return"";
}
}
I often get the output:
Failed to open SXMPFile for "(...)52x61.jpg"
Exception: XMPFiles::GetXMP - No open file
Oddly, rescanning the file may solve the problem - so I am not sure where there is a problem in the first place. Are there any alterations for the code I should try?
Greetings,
smon
Re: "XMPFiles::GetXMP - No open file" on random files, on random occasions.
Hi Dersomn,
You have already initialized XMPFiles by calling "SXMPFiles::Initialize();" why are you again trying to initialize with the following statement
if(!myfile.Initialize(opts)){
qDebug()<<"FailedtoinitializeSXMPFile.";
}
This code is not required. However theorecticaly there shouldn't be any issue by calling the above statement. But if you can please remove it.
I tried on my end to reproduce the issue but I couldn't find any issue. You have the same statement which XMP SDK provides in ReadingXMP example.
So could you please let me know
1. Is the above code failes first time on the a file and second time runs successfully on the same file
or 2. There are a set of files. And when you runs the above code it runs fine for some files not for all but next time passes for those files.
If you can please send me the file(s) and steps to reproduce the issue.
-Sunil
reading XMP includes strange characters
I'm trying to read XMP from a file, and sometimes I get weird characters back like this "© 2013".
Re: reading XMP includes strange characters
Are you using ReadingXMP sample which is provided with XMP SDK? If not, XMP SDK provided ReadingXMP sample, please build and use it or send the code which you are using.
If you are using ReadingXMP, could you please send the file you are trying to read and code changes if you have done any.
-Sunil
Re: "XMPFiles::GetXMP - No open file" on random files, on random occasions.
Hey Sunil,
I removed the redundant code. There actually is a set of files. I just did some test runs to reproduce the problem:
The first time I started the program, everything worked a expected... After a program restart, I did multiple exports, the results:
- export: files 1-2, 4-24 could not be opened, as described in my original post, the rest was exported correctly
- to 4. export: everything worked fine
Greetings,
dersmon
Re: "XMPFiles::GetXMP - No open file" on random files, on random occasions.
Hi dersmon,
I tried locally by creating a similar setup to reproduce you issue but with no luck.
I will be happy to work in your setup (if you can send or give me permisson or provide a simple setup as zip file or through VNC setup). If you can't give the setup due to any reason, could you give me steps required to setup the same on my end.
-Sunil
Re: "XMPFiles::GetXMP - No open file" on random files, on random occasions.
Hey,
I noticed in that the XMP_StringPtr is not cast correctly in case the process fails. I added
qDebug()<<"filenamePtr:"<< filenamePtr;
before trying to open the file. The result:
Importing XMP-Metadata from Image: "D:/(...)03bx02x03.jpg"
filenamePtr: @:@
Failed to open SXMPFile for "D:/(...)03bx02x03.jpg"
Exception: XMPFiles::GetXMP - No open file
Importing XMP-Metadata from Image: "D:/(...)03bx02x04.jpg"
filenamePtr: @:@
Failed to open SXMPFile for "D:/(...)03bx02x04.jpg"
Exception: XMPFiles::GetXMP - No open file
Importing XMP-Metadata from Image: "D:/(...)03bx02x05.jpg" // first correct result
filenamePtr: D:/(...)03bx02x05.jpg
Importing XMP-Metadata from Image: "D:/(...)03bx02x06.jpg"
filenamePtr: (...)03bx02x06.jpg
Importing XMP-Metadata from Image: "D:/(...)03bx02x07.jpg"
filenamePtr: D:/(...)03bx02x07.jpg
Importing XMP-Metadata from Image: "D:/(...)03bx02x08.jpg"
filenamePtr: D:/(...)03bx02x08.jpg
Using XMP how do I get the duration of an AVI file ?
Using XMP how do I get the duration of an AVI file or get the total frames and frame rate ?