Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Exif data from image in java?

Tags:

java

jpeg

exif

What is the simplest way to remove exif data from an image and then move it to another folder? Same location, just in a folder. That way there are original copies.

Thanks.


1 Answers

I think an easy way to do this would be to read it as an Image and then write it to the new folder using ImageIO.read(...) and ImageIO.write(...). I don't think Images have metadata. If that doesn't work, you could write it as a bmp, then reread it and write it again as a jpeg.

like image 89
k_g Avatar answered Apr 27 '26 13:04

k_g



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!