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);