How to wipe/overwrite corrupted xmp/rdf in jpeg/tiff file

Is it possible to wipe/overwrite corrupted (incomplete, wrong format, etc) xmp data in the file using XMP SDK only? I mean, is there any way to wipe/overwrite corrupted xmp packet data if I got kXMPErr_BadXMP, kXMPErr_BadParse, kXMPErr_BadXML, kXMPErr_BadRDF, etc using XMPFiles::OpenFile or XMPFiles::GetXMP methods.

No replies needed anymore. I think EXIF Tool (by Phil Harvey) will do the thing for me and Phil himself crarified things for me in his own forum...

Similar Messages

  • How do I change the color of a scanned tiff file.  It is currently a black image and I want to change the color.

    How do I change the colora of a scanned tiff file.  The image is currently black and I want to change the color.  Thank you.

    You can use the Temperature slider in the Adjust Image pane to apply a tone.
    Walt

  • HT4007 I have just transferred all my raw, jpeg & tiff files into LR4 and using to opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my msc disc??

    I have just transferred all my raw, jpeg & tiff files into LR4 and using the  opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my mac disc??

    I'd be careful here: LR references files. It can copy them, like from an SD card to your hard drive, but it doesn't necessarily make duplicates. So when you say you "transferred" those files "into" LR it just means you referenced existing files. And if you delete those they're gone, unless you've made copies. LR does not import files by copying them into a managed library like Aperture does.

  • How do I get PSE 12 to save a TIFF file with file extension ".tiff" instead of ".tif"?

    I am using PSE 12 as an external editor for Aperture.  When I ask to use an external photo editor, Aperture creates a .tiff file in my Aperture folder, launches PSE 12 and tells it to edit that .tiff file.  This all works great.  When I am done editing in PSE 12, I ask it to save the file and it saves it back to the original Aperture folder with a .tif extension.  I can instead say "save as" and then it suggests the file name with a .tif extension.  When I correct the extension to .tiff it warns me that I'm going to overwrite the file (exactly what I want!).  I say yes and then I find out that PSE did not overwrite the file, but wrote it as a .tif file anyway.  I have to go to the folder, delete the .tiff file and rename the .tif file to .tiff and then everything is fine - but what a hassle.  Has anyone solved this problem?

    That's not quite where the problem lies, which is good, because you can't change that. The real solution is that you don't ever want to see the save as window in PSE if you are using PSE as external editor for any program. When you see it you aren't creating a version for your asset management program. Go to the PSE preferences>saving files>on first save and choose to save over existing file. That should do what you want.

  • How can I create a custom shape from a TIFF file?

    I have a logo as a tiff file that I am trying to use as a watermark. I figured out how to insert it onto another picture through File > Place... however i then couldn't figure out how to change the colour of the watermark. Any pointers would be much appreciated!

    Which version of photoshop elements are you using?
    What color is the logo now?
    Can you post an example of the logo?

  • How to load and display a byte array (jpeg) image file dynamically in Flex?

    My web service client (servlet) received a binary jpeg data from an Image Server. The Flex application invokes the
    servlet via HttpService and receives the binary jpeg data as byte array.  How could it be displayed dynamically
    without writing the byte array to a jpeg file?  Please help (some sample code is very much appreciated).

    JPEGEncoder is only useful for converting BitmapData to ByteArray, not the other way around.
    By the way JPEGEncoder and PNGEncoder are part of the Flex SDK now, so no need to use AS3Lib (alltough it's a good library to have around).
    To display/use a ByteArray as image, use a Loader instance with the loadBytes method.
        Loader.loadBytes(bytes:ByteArray, context:LoaderContext = null);
    Listen for the complete event on the Loader.contentLoaderInfo and get the BitmapData in the event handler.
    private function loadJpeg():void {
        var loader:Loader = new Loader();
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
        //jpgBA is the ByteArray loaded from webservice
        loader.loadBytes(jpgBA);
    private function loaderCompleteHandler(evt:Event):void {
        var t:LoaderInfo = evt.currentTarget as LoaderInfo;
        // display the jpeg in an Image component
        img.source = t.content;
    <mx:Image id="img" scaleContent="false" />

  • 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 a tiff file that has more than one page?

    Hi,
    I use JAI to read TIFF image and get the pixels from a raster object. A TIFF file can have more than one image in itself. The JAI doc from SUN only mentioned that we can get the number of IFD (image file directory) by using
    getNumDirectories() function but no description about how to get different images separately out of one TIFF file. Does any one know how to do it or some example programs implementing such function? Thanks a lot.
    Marvin

    I'm not sure if this helps, but here's a web page which talks about Image I/O:
    http://java.sun.com/products/java-media/jai/iio.html
    For your problem, they have a sample solution which can read a specific page of a multi-page tiff file, so perhaps you could make a loop to read all of the pages:
    http://java.sun.com/products/java-media/jai/forDevelopers/samples/MultiPageRead.java
    Good luck!

  • TS3212 Still unable to download itunes to my pc. Tried with IE, Mozilla and Google Chrome. Keep getting an error message :"Windows cannot open itunes.exe the file is corrupt contact support."previous itunes files were wipped out by "disk cleaner." Any hel

    Still unable to download itunes to my pc. Tried with IE, Mozilla and Google Chrome. Keep getting an error message :"Windows cannot open itunes.exe the file is corrupt contact support."previous itunes files were wipped out by "disk cleaner." Any help??
    Please!
    Thanks!

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • How can I replace just the corrupt page(s) in the domain file of iWeb using Time Machine?

    I back up with Time Machine and have an extensive elaborate website I created in iWeb '09 over a couple months and publish to a local folder and then upload to my server, but in the last few days I notice certain pages (that I haven't even worked on or touched) somehow become corrupted or "cross-contaminated" with elements and images from other pages.  Once I see they are corrupt I make sure not to publish them (if the current published versions are the correct, non-corrupt versions) or if they did get published I can use Time Machine to retrieve the .html file and page files folder for that specific page and replace it in my published folder/server so it shows correctly on the Web.  However, that does not replace the corrupted page(s) you see and work with when you launch iWeb and try to edit or continue working on that page.
    I am confused as to how I go to the package contents of the domain file and replace just that page with a previous version from time machine.  I don't want to replace the entire domain file because I have new changes I made to other pages even in the past hours.  How can I keep the good pages and just get earlier, non-corrupted versions of the corrupt page(s)? I know it's not as easy as with the published site folder where you can just replace the page's .html file and folder, but I don't want to have to re-create the corrupted page(s) from scratch or have to replace it with the last non-corrupted domain file and then have to redo all my recent changes to new pages I made before discovering the corrupt page(s).  Thanks for your help as now I can't make changes to the page(s) within iWeb itself.

    Thanks for the response, Wyodor.  I don't know what that is, but I'll have a look.  Is it an alternative to iWeb or a way to transfer pre-existing iWeb sites?  When you say merge domain files, is that like so multiple copies of the same site show up then you can pick and choose the non-corrupted pages and group them then delete the corrupted ones?  I am on Snow Leopard with no plans or need to upgrade anytime soon.
    And yes, I will read your links but just wanted to ask those questions.  Maybe they'll answer my questions, maybe not.
    I was able to discern that within the domain file is a domain folder with all the site folders, each with their own page ".gz" files which expand into ".xml" files.  I was trying to figure out if you could simply drag the corrupt pages out that way and replace them with backup copies that are still good.  I am having trouble discerning which pages are which as they all have random names like site-page-30F175E3-AE33-4F10-A490-1A096D9B185B.xml and although I expanded and opened each in Text Wrangler, I still couldn't discern which were which for sure, and trial and error proved cumbersome.  Also, I did notice some of the later corrupted domain files had one or two more pages than the site itself has, so not sure how they got added or duplicated or what.
    Again, I'll look at your links, but do you know about swapping out individual page .xml files this way within the domain file?

  • How to wipe my Macbook Pro clean of data

    How to wipe my Macbook Pro of data?

    What to do before selling or giving away your Mac
    This is the Mac Pro desktop forum. I requested your post be moved to the MacBook Pro laptop forum.

  • Missing Ringtone When Syncing with iTunes - How do I remove Corrupt Ringtones from my iPhone?

    PLEASE HELP!  I've been having trouble with a ringtone I purchased a few months back. Everything was fine, until a month ago when i synced my phone with iTunes, and my ringtone suddenly disappeared.  I have tried several times to sync / resync my phone again and again, and the ringtone is not there.  It is in my iTunes library under Tones, and it plays when I double-click on it.  But for some reason it won't sync over to my phone.  I've been in contact with Apple Support over email and they have put the ringtone back on my account twice, and both times I have been able to download it back directly to my iPhone.  But it's the same story all over again when I sync with iTunes... the ringtone just disappears, even when I checked "Sync Tones".
    Interestingly enough, when I take a look at my iPhone in iTunes, under Tones, there are 4 instances of the ringtone, all of them have an error icon next to them, as shown in the screenshot below:
    I've tried to NOT sync ringtones, but this list still appears.  For some reason I cannot delete these corrupt ringtones from my phone.
    In my library, the ringtones appear fine, and play fine when I double-click on them.  I don't know why there are 2 of them though.
    Please help!  I've been at this for a month and cannot find a solution!  I've re-bought the ringtone twice, but everytime I sync, it disppears all over again.  I think removing the corrupt ringtones from the iPhone may solve the issue.  Once I remove the corrupt files, I can start from scratch since the ones in my library play fine.  But the problem is I don't know how to remove the corrupt files from my phone.  Please help!
    Specs:
    iPhone 4 version 5.1.1
    iTunes v10.6.3
    MacBook Pro OS X 10.7.4

    See Here for
    iTunes Customer Service Contact
    http://www.apple.com/support/itunes/contact.html

  • How do you separate corrupt files from good files on a external hard drive importing them to my macbook pro

    how do you separate corrupt files from good files on a external hard drive importing them to your macbook pro

    You open them one at a time into thier respective programs and see if they are good or not and then send the bad ones to the Trash and the good ones to the appropriate folder.

  • How to restore a corrupted file?

    Hello,
    I have a problem with the Illustrator file I was working on. I cannot open it, and the icon of the file is a bit opaque with a grey cross. If I try to move it, a message says that the file is unavailable. But still is not an empty file. This is the property window:
    Also, I stopped working around 01.00, so I don't know why the last access is at 02.36.
    Is there any way to recover the information?
    Thank you,

    It's probably toast, but try this:
    From Illustrator, try open recent file.
    Create a new file and try to place the corrupt file into it.
    Try to open it in Acrobat.
    Change the extension to .pdf and try to open it in Acrobat and Illustrator.
    here's a link you can try:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/

  • How to wipe  hard drive bc selling computer and want all passwords/personal info gone? etc

    how to wipe  hard drive bc selling computer and want all passwords/personal info gone?

    You need to boot the computer from another source, e.g. a CD or an external drive. Then run Disk Utility, select the drive you want cleaned up, and run Erase. Note the security options: "write zeroes" will erase the drive completely.

Maybe you are looking for

  • Need help with connecting file inputs to arrays

    In this assignment I have a program that will do the following: display a list of names inputed by the user in reverse order, display any names that begin with M or m, and display any names with 5 or more letters. This is all done with arrays. That w

  • The message on my iphone 4s delivered late and I can't receive any calls for some time

    It's almost 6 months since I've encountered this problem. I already requested my carrier to have my iphone 4s replaced and a series of testing was done to my iphone 4s before they found out this it was defective. Now, I have my new iphone 4s but the

  • Hi all i have a problem with my iphone 4 battery/ charging

    Hi All. i have charged the phone for a few hours now and gone to switch it on and it is still saying the battery is flat how can this be resolved or as anyone else had this same problem, i have also tryied my brothers charger in my phone incase it wa

  • What is the best place to store movie content?

    I was storing my movies that I converted from dvd in a separate folder on another drive. Then I ran the consolidation option and it copied them to my music folder, within a sub folder called movies. Should I store them there to start with? or is ther

  • Accidentally deleted rig setting in library

    I have permanently deleted one of the "complete rigs" from the library and I wanted to know if there is any way to retrieve it. Would reinstalling Logic be the simplest way to bring it back? And if I do that will I lose all of my Logic projects?