Resize and Save Image While Preserving Metadata Resize and Save Image While Preserving Metadata wpf wpf

Resize and Save Image While Preserving Metadata


Use the Image.PropertyItems property on the source image to get the list of metadata items. Loop through the list, calling Image.SetPropertyItem on the destination image. You should normally avoid resizing and re-compressing a jpeg image, working from an uncompressed original is best to maintain quality and avoid artifacts.