XMP metadata lost from PNG files after saveing

Hello,
i am using Photosop CS3 SDK. through my plug-in I put some metadata in the file using XMP SDK 4.4.2.
For PNG files, if the file is modified and saved, all the XMP metadata is lost from the file.
The following steps are being done.
1. Put some metadata in PNG file using SXMPMeta::SetProperty and SXMPMeta::AppendArrayItem
2. modify the file (changed brightness, contrast, flattened the image).
3. Save this file.
After saving all the xmp metadata is lost from the PNG file. This works for all other formats.
What can be wrong that I am doing?
Is there any other way to put XMP metadata in file?
Thanks,
Hitesh

That's probably because PNG doesn't save or read XMP metadata.
There really aren't standards for metadata in PNG. (though a few products have tried adding it in ad-hoc ways, without documenting their efforts)

Similar Messages

  • XMP metadata lost in PNG files

    Hello,
    My XMP metadata is lost from a PNG file if the file is modified and saved. Here is what I am doing
    1. Put some metadata in a PNG file using m_xmpFile.OpenFile( FileName, kXMP_PNGFile , kXMPFiles_OpenForUpdate)
    2. Edit this file in Photoshop (changed the brightness and contrast of the file)
    3. Saved the the modified files.
    All my XMP metadata is now lost fromt the file.
    is my implementation wrong? Is there some other way to stamp metadata in PNG files?
    Thanks,
    Hitesh

    Info: Mac, Yosemite, Bridge CC
    I have an extensive collection of PNG files that HAD been keyworded in Bridge (XMP). I noticed several days ago that the XMP of all those files is now missing.
    When attempting to assign keywords back in, I also get the message: "The file ####.png canot store XMP metadata. No changes will occur." Weird. Like you said, it's looking like a bug.
    And here's the kicker... if I duplicate the PNG file (Edit > Duplicate), the "copy" DOES contain the original XMP that went missing.
    I really don't want to have to manually duplicate all my PNG files just to regain the metadata. Any brainy solution? I'm attaching an example of the original PNG (missing XMP) and the duplicated PNG (magically restored XMP).

  • Lost audio files after saving.

    I lost my audio files after saving in Logic X and now my project file has the extension .logicx on it and my audio files are nowhere to be seen. I made some changes to the project, moved the file to another folder, then they asked if I wanted to replace the other file with the new and I said yes not thinking that it would matter. Is there any way that my audio files are still out there somewhere? And no I don't have time machine hooked up.
    Thanks.

    if you replaced that file.. then you have lost it's contents as they have all been replaced with the one you copied over... and as you have no backups you cannot, as they say.. un-scramble the egg...
    Finally start making backups as soon as possible...
    As the old saying goes...
    "There are three things in life you can always count on.. Death.. Taxes...and you will need a backup of your computer data at some point"
    Nigel

  • Adding/Reading XMP Metadata in a psd file

    Hi,
    I'm having some troubles to understand how to add and read XMP metadata on a psd file. I followed the Panel developer guide tutorial, and try to look on the internet for some answers, but I'm still stuck ...
    Here is the simple example I'm trying to make (using part of the code from the panel developer guide) :
         The function loads the XMP Script Library.
         @returns True if the XMP Script Library was loaded successfully.
         @type Boolean
    function loadXMPLibrary(){
         if ( !ExternalObject.AdobeXMPScript ){
              try{
                   ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
              }catch (e){
                   alert("Can't load XMP Script Library");
                   return false;
         return true;
         The function unloads the XMP Script Library.
    function unloadXMPLibrary(){
         if( ExternalObject.AdobeXMPScript ) {
              try{
                   ExternalObject.AdobeXMPScript.unload();
                   ExternalObject.AdobeXMPScript = undefined;
              }catch (e){
                   alert("Can't unload XMP Script Library");
        Try to put a new property into the metadata
    if( app.activeDocument || !loadXMPLibrary()){
        var xmp = new XMPMeta(activeDocument.xmpMetadata.rawData);
        xmp.setProperty( XMPConst.NS_EXIF, "myProperty", "test" );
        activeDocument.xmpMetadata.rawData = xmp.serialize();
        unloadXMPLibrary();
        Window.alert(activeDocument.xmpMetadata.rawData);
    I don't really know where I'm wrong, could you help me please ?
    Thanks,
    Julien

    Rather mess with EXIF and Dublin Core namespaces, wouldn't it be better to create your own?
    IE:
    #target photoshop
    addtoMeta();
    function addtoMeta(){
    if(!documents.length) return;
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
    var myNamespace = "http://my.fantastic.newspace/";
    var myPrefix = "nsfns:";
    XMPMeta.registerNamespace(myNamespace, myPrefix);
    xmp.setProperty(myNamespace, "myProperty", "A Test String");
    app.activeDocument.xmpMetadata.rawData = xmp.serialize();

  • How to read XMP metadata of an indd file using Actionscript

    Hi All,
    I am trying to read XMP metadata of an indd file using CS Extension Builder in Flash Builder 4.5.
    The documentation has many class like XMPmeta, XMPStruct, etc.
    I have got the currently opened document in InDesign as follows:
    var myDoc:Document = InDesign.app.activeDocument();
    And a new XMPmeta object is created as follows:
    var myXMP:XMPMeta = new XMPMeta();
    How to initialize document's xmp metadata in the XMPMeta object? Or is there any other way to get the XMP metadata of currently opened document in InDesign?

    I have found that the XMP data of an InDesign document can be retrieved in actionscript as follows:
    InDesign.app.activeDocument.metadataPreferences
    This returns the MetadataPreference object.
    But I am not able to iterate each namespace in the xmp. There isn't any XMPFile class which allows me to serialize the object to xml file so that I can iterate all elements in the XMP.
    I could not relate class like XMPMeta, XMPProp, etc. with the MetaDataPreference class. So, how to obtain the entire xmp packet from the MetadataPreference object?
    Can anyone shed light on this?

  • Signature Scribble field not retaining image file after saving

    I have 2 issues with my PDF dynamic file I sent out
         1) The add/remove controls is adding a random amount of extra blank rows upon saving the PDF
         2) The image files selected for the Signature Scribble field is not retaining the image file after saving. It also doesn't give an opportunity to actually draw in a signature.
    I even tried to use the Subform Instance Controls Insert/Remove/Move in my table, but I keep receiving the error "You have reached the maximum number of items allowed"
    I would appreciate any help you can give me! I have been farting around with this for too long.
    Thanks!
    Rhonda

    Thanks Pat.  Tried each, restarted computer each time; tried the "Accept" routine several days ago - it worked briefly and then stopped.  Uninstalled Reader and Flash as well.  Strange thing with Flash, one of my online broker programs provides streaming of CNBC.  When I clicked on the CNBC option to initiate CNBC, I got a message saying that I needed to load Flash.  I did, and it loaded again with no mention of Flash having already been installed.
    Using Internet Explorer works, as well as, clicking on the .pdf file within Windows Explorer (WE).  Expanding the window in WE makes it large enough to read.  I would still like to find a way to open the files as they are designed to open.
    I have done all of the Adobe updates as they have been presented.  Microsoft updates load automatically, and restart my computer in the process.  I do not look to see what the updates have been.  I figure if there was not a need, Microsoft would not make the updates.
    [private data removed]

  • Elements 12 Strips Metadata from Tiff Files When Saving?!

    When I bring a photo into Elements 12 in tiff format from Capture NX2  and edit it, then save it, the metadata gets stripped out. I want the photo to retain the metadata so that Organizer can sort my photos by data and time captured. I've verified that the metadata was present before editing the file in Elements. How can I do this? I've tried both checking and unchecking the "Ignore Camera Data" box in the Saving Files Preferences. Thanks

    Jim - of course the original is not retained: the apps are doing a safe save (where you save to a new filename, then replace the original with the duplicate in a semi-atomic way). This is done using standard OS APIs whenever possible, and is done in most applications. All file saves in Photoshop behave the same way, except maybe PDF (which is in some code we don't control) and SaveForWeb (also different code).
    Again, the root cause is an Apple bug in the way they chose to associate metadata with the files, and how they updated existing APIs to deal with the additional metadata. We might be able to work around this using new APIs -- but should apps have to change their code every time someone decides to add new metadata invisible to the app and separate from the file? Shouldn't the design of the metadata system be more robust, and work with existing applications? Shouldn't someone have thought about this before releasing a metadata system, that, well, nobody knew about?

  • HT201272 I lost all my files after dowloading Icloud and updating Itunes on 24 September 13.  having reloaded the computer and and files from an Emergency Backup folder I can no longer see My Library in Itunes or in Itunes store, and my ipod and ipad aren

    can anyone help with retrieving My Library in Itunes and Itunes store - having updated Itunes and Icloud on 24 September 13, my computer failed and I lost all my files which were eventually backed up to an Emergency Backup.  my computer is now working again and I have down loaded Itunes and transferred all the files from my Emergency Backup.  Non of the music went back into Itunes, so I had to find these files and manually moved them to Itunes.  The music is now in Itunes, but I no longer have the folder named My Library, which I think is the reason my Ipad, ipod no longer sync any additional music I have added to Itunes. Does anyone know how to rectify this please.
    Many thanks.  Crusey

    iTunes expects files and folders to be in very specific locations.  When you start iTunes it looks for a file called library.itl which is in the iTunes folder.  It then uses all the references in that file which tell it where all your media files are located to build up the view you normally see.  Probably you moved the library file so iTunes cannot find it and it will make a default one which is empty.  When you plug in your iPod it isn't recognizing the library since it is not the same one to which you synced last.
    Simply put, you need to undo all your file moves.  Not as eaily done as stated but since I cannot quite see from here exactly what you spent an hour doing last night it will be up to you.  Did you make a backup before doing all this?
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847
    Image of folder structure and explanation of different iTunes versions (turingtest2 post) - https://discussions.apple.com/message/13025536 and https://discussions.apple.com/message/17457605

  • Can't open PSD files after saving them

    I haven't ever had this issue before and now have had it twice in the last week or so. I scrap all the time and now after saving the file as a PSE, when I go to reopen from inside Photoshop Elements 7, it's telling me it can't be opened because it's not the right type of file. Any suggestions. I am using Vista but of course have been using the same computer with no problem up until now.

    I figured it out myself. Both files I could not reopen were named for teachers. So they were Mrs. so & so. The period in the file name was causing it not to be saved correctly I suppose. When I restarted the Layout again and saved it, I saved it without the period and then no problem at all. Just wanted to let those reading know...

  • Reading metadata to - from image files

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

    I am using Creative Suite CS4.  In CS3 I created two custom XMP metadata pages that I used to add information to RAW, TIF, PSD files.  The resulting custom panel could be seen and used in Bridge and Extensis Portfolio.  In CS4 that all changed.  I can create the GUI part of the panel using Flex Builder 3.
    My questions are 1) How do you get the controls to work (combo boxes with fixed lists, fields for text data and a note field), 2) how do I get the data from the image file, have it update when a field changes, read it back to the image file when closed, and 3) how do I get it to work in Bridge CS4 properly and also be readable to Extensis Portfolio.
    I have attached the CS3 files that were used to create the panels in CS3.
    Fred

  • Unable to edit file after saving with add-in

    I'm only just starting to test the Vibe add-in. Looks good so far, but I've noticed one fairly important issue.
    If I start with a new file and save it for the first time, all is well from within MS-Word. I can save, continue editing, and save again. However, if I then login to the Vibe site I can't actually edit the file, at least not immediately, nor can any members of my team. As of now, the two test files I've created cannot be edited on the Vibe site.
    Of course, I realize that the add-in is beta, but I just thought I would bring this up. I'm also wondering if anyone else has observed the same behaviour. Thanks.

    This is the vibe file edit applet, right?. Not sure this has to do with desktop. Seems to be you are having problems with the editor on linux and mac. Can you upload a file without using desktop and test editing that? I think maybe you are having some of the problems described in the readme with the vibe edit applet.
    What are you expecting to happen when you click on edit in linux?
    6.7 Restrictions on Applet Support
    Applets are not supported on 64-bit Firefox on a system with a Java Runtime Environment (JRE) earlier than 1.6.0_12.
    On a 64-bit operating system, updating to JRE 1.6.0.12 or later enables the applets to work.
    For example, multi-file drag-and-drop from the desktop, file paste from the desktop, Edit in Place, and the graphical display in the workflow editor do not work where applets are not supported.
    6.8 Edit in Place Support for Mac Users
    For Mac users, Vibe looks for OpenOffice.org in the following directory on users Mac workstations:
    /Applications/OpenOffice.org.app
    If your organizations standard location for OpenOffice.org is in a different location on users workstations, you can reconfigure Vibe to look for OpenOffice.org in your preferred location.
    1.
    Change to the following directory:
    Linux:
    /opt/novell/teaming/apache-tomcat-version/
    webapps/ssf/WEB-INF/classes/config
    Windows:
    c:\Program Files\Novell\Teaming\apache-tomcat-version\
    webapps\ssf\WEB-INF\classes\config
    2.
    Open the ssf.properties file in a text editor.
    3.
    Locate the block of lines that start with:
    edit.in.place.mac.editor
    4.
    Copy that set of lines to the clipboard of your text editor.
    5.
    Open the ssf-ext.properties file, which is located in the same directory as the ssf.properties file.
    6.
    Paste the block of lines you copied at the end of the ssf-ext.properties file.
    7.
    Edit the location of the OpenOffice.org software to reflect its location in your organization.
    8.
    Save and close the ssf-ext.properties file.
    9.
    Close the ssf.properties file without saving it.
    10.
    Stop and restart Vibe to put the new software location into effect on your Vibe site.

  • Countless .png files after converting pdf to dwg

    After converting a .pdf file to a .dwg file using the export feature in adobe illustrator, I find that as many as 500 .png files come with the newly made .dwg after the conversion is complete. My question is, why do all these pictures come with the .dwg file and what would I have to change, settings wise, to no longer have to delete all of those photos? (i.e. how to export ONLY the .dwg file) I thank you all in advance for you help.

    We can't know. We have no idea what the file looks like, how it was created in the first place or even what version of AI you use. And not to state the obvious: You are mistaken if you think that CAD-generated PDFs or DWGs only contain vectors, so for all intents and purposes this could be totally normal within the bounds of the format and how the file was originally generated.
    Mylenium

  • Create PVR texture from png file

    Hi,
    I have one image file in png format. I want to create texture out of that image. To convert into texture format .pvr I am using following command:
    $ ./texturetool -e PVRTC -o ./image.pvr ./image.png
    image.pvr file is getting created but with zero bytes file size. I loaded and tested it nothing comes blank screen.
    Please tell me syntax of conversion from png or jpg to .pvr.
    Regards,
    Ganesh Pisal
    Vavni Inc

    I am using this code to load created texture:
    NSString *path = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"pvr"];
    NSData *data = [NSData dataWithContentsOfFile:path];
    textures[kTextureone] = [[Texture2D alloc] initWithData:[data bytes] pixelFormat:kTexture2DPixelFormatRGBAPVRTC4 pixelsWide:512 pixelsHigh:512 contentSize:CGSizeMake(512,512)];
    Not getting texture.

  • CUNIT error in data loading from flat file after r/3 extraction

    Hi all
    After R/3 business content extraction, if i load data from flat file to info cube, I am getting Conversion exit CUNIT error, what might be the reason, the data in the flat file 0unit column is accurate, and mapping rules are also correct, but still i am getting error with CUNIT.?

    check your unit if you are loading amount or quantities what mapping you have and what you are loading from flat files.
    BK

  • Had to reload window Vista need to reload stored cds from Windowsold file after reload

    had to reload window Vista need to reload stored cds from Windowsold file

      had to reload my computer after a HD failure. I reloaded everything along with current version of Itunes.
    Consider Windows 7 has its own built in data and system backup, and now Windows 7 (Dev) has a better hourly backup/archive versions, and there are 3rd party programs....
    you have the CDs still?
    Prosoft Data Rescue 3 for PC and Macs (demo) can scan a drive for recovery.
    Bad blocks, or issues with directory and such? out right hard drive failure?
    And then there are network storage if you have more than one computer, or use HomeGroup (Win 7) to access files across LAN.
    My Music Media Library is never on the boot drive, I wish the iPod backup wasnt as well.
    For an excellent utility to clone Windows OS drive2drive, I recommend and use Paragon HDM 2011 Suite, used as needed and weekly so I always have a system clone that I can pop in and boot from, no image, no restore needed (set the BIOS or hot key).  Wouldn't be w/o and $49. Takes 10 minutes for 50GB Windows OS.
    http://www.paragon-software.com/home/hdm-personal/

Maybe you are looking for

  • E-mail disappeared from Apple Mail in Mavericks

    Hello, I think I experienced a bug yesterday in Apple Mail (I am running Mac OS X 10.9): While organizing my e-mails, I made a new folder in my iCloud account in Apple Mail. Let's call it "Apple". Then I used the search function to find the e-mails (

  • MacPro 1,1 10.6.8 won't boot after kernel panic

    I apologize for the long post, but figured I'd lay out the whole scenario. I had a kernel panic in Safari yesterday. Powered down. Powered on. Message appeared saying to power down, and restart again. Did that. Then the fun started. The restart was s

  • Include files in root of application folder when building

    Hi, can anyone advise how I would go about doing this in my build properties. I have a dll file that I need to be place in the root installation aty the same level as the "myapplication.exe" I can see how you can create your own sub dirs, and tell it

  • Problem with perform statement

    Hi All,     I 'm in PAI event. i'm writing code for a check box. there           CASE SY-UCOMM.               when 'FC'.              here i need to write a select statement like      select field from database into itab where field1 = itab1-field1.

  • How to Setup an ACL over a Command in solaris 2.6

    Hi all, Has anyone have an idea on how to setup an ACL over a command in solaris 2.6 . i.e: to force a user (or a group) to enter a password to run a command (like mount and others). Thanks for your help. haed98. [email protected]