1

My program resizes images with SWT (Graphics2D). It works by reading a file, performing the resize, and then writing out to another file. But, I need to preserve the EXIF data, so this doesn't work. Is there a way to keep the EXIF data, or else read the EXIF data from the original image and write to the new one? I'm currently using Drew Noaks' Metadata Extractor for extracting the data for my own purposes.

Jonah
  • 9,991
  • 5
  • 45
  • 79
  • My solution using a combination of ImageIO, Imgscalr and Apache commons-imaging is pasted on: http://stackoverflow.com/questions/8972357/manipulate-an-image-without-deleting-its-exif-data – Ed Randall May 19 '14 at 12:28
  • @MatthewGreen this question is actually significantly older, and has an answer. – Jonah May 30 '14 at 22:05
  • Figured it out, here's the code I used: http://pastebin.com/x1Sh7bZR The important parts are `resizeImage` and `convertToSWT`. – Jonah Mar 02 '11 at 04:08

0 Answers0