I'm using apache-commons-sanselan.jar
API to remove EXIF
content from only JPEG
file.
How to remove this content from other file extensions?
BufferedImage image = ImageIO.read(new File("image.jpg"));
ImageIO.write(image, "jpg", new File("image.jpg"));
Metadata isn't read when you read an image. Just write it back. Replace jpg
with the extension you want.
Sources:
How to remove Exif,IPTC,XMP data of a png image in Java
How can I remove metadata from a JPEG image in Java?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With