Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

How do I copy Exif Data Except thumbnail?

Last post 02 Apr 2008, 5:32 AM by CBiggerstaff. 0 replies.
Sort Posts: Previous Next
  •  02 Apr 2008, 5:32 AM 13588

    How do I copy Exif Data Except thumbnail?

    I am using the code below to copy exif data to a rotated image (result2 is the return from the rotate command).  The problem is that after copying the exif data the thumbnail is set to back to the pre-rotated image since that's where I'm getting the EXIF data from.  How can I update the thumbnail field with the current rotated image or create a new thumbnail?

    Atalasoft.Imaging.Codec.JpegEncoder jpg = new Atalasoft.Imaging.Codec.JpegEncoder();
    jpg.AppMarkers = this.jpegMarkers;
    jpg.ComText = this.comItems;
    jpg.IptcTags = this.iptcItems;         

    results2.Image.Save(psRotatedFileName, jpg, null);

View as RSS news feed in XML