B
Brian S O'Neill
Sometimes JPEG files, especially from digital cameras, have a bunch of
metadata. I'd like to read a JPEG file and write it back out, stripping
out this metadata.
The javax.imageio package provides nice methods for reading and writing
image files, but I cannot figure out a way to write the new JPEG out
without having to recompress and lose data. If the compression quality
is set to highest, does this preserve the original quality without
increasing file size?
Is there any special way to make javax.imageio support what I want, or
is there another API that can do this?
metadata. I'd like to read a JPEG file and write it back out, stripping
out this metadata.
The javax.imageio package provides nice methods for reading and writing
image files, but I cannot figure out a way to write the new JPEG out
without having to recompress and lose data. If the compression quality
is set to highest, does this preserve the original quality without
increasing file size?
Is there any special way to make javax.imageio support what I want, or
is there another API that can do this?