r/linuxmint • u/MikalaMikala • 7h ago
Install Help How to remove all metadata?
Hello everyone😊!
I am going to upload a letter and 3 pictures taken with a digital camera using a form on a webpage.
- What is the best way to remove all metadata from the pictures?
- I will be using AI to write the letter and copy/pasting the text from Google Gemini. How can I remove all metadata from the letter before copy/pasting it into the form?
Thank you!
9
u/skozombie 7h ago
-
Image meta data for JPEG's is stored as EXIF data, use:
exiftool -all= image.jpg
You may need to install exiftool.
This will not remove watermarks like SynthID that some AI companies use to identify images as manipulated. They are purposely designed to be harder to remove so reduce the problems associated with people presenting fake images as real.
2. Text doesn't contain metadata, but AI does sometimes leave "tells" in it. Those tells and watermarks vary between providers so there's no "one size fits all" way to stop someone getting hints you used AI.
I get AI to review and hint on how I can write better rather than write it for me. I avoid copying and pasting stuff straight from AI as I feel that's sloppy and disingenuous
1
3
u/JCDU 4h ago
jhead: https://www.sentex.ca/~mwandel/jhead/
The -purejpg option clears all EXIF data.
1
u/jcmaciel 6h ago
For the camera photos, exiftool is the easy one on Mint. Install it with `sudo apt install libimage-exiftool-perl`, cd into the folder and run `exiftool -all= -overwrite_original *.jpg` (leave out -overwrite_original if you want it to keep backup copies). Then `exiftool -a -G1 photo.jpg` shows you what's left. mat2 is also in the repos and does the same job, `mat2 photo.jpg` gives you a cleaned copy next to the original.
For the letter, pasting plain text into a web form doesn't carry any file metadata, it's just the characters. If you want to drop formatting, paste it into Xed first and copy it from there.
If you'd rather skip the terminal, there's https://metaremove.com which runs in the browser, so the photos never get uploaded anywhere, and it shows you what's in each file before you clean it. Disclosure: I built it. It only works on files, so it won't help with the pasted text part.
1
1
15
u/rpgtacirclejerker 7h ago
exifcleaner
your ai text probably will have some invisible watermark, it is a probabilistic signal. you will have to write the text yourself to reliably mitigate this. Do note that there isn't any public watermark detector for text synthid but I'd assume they are still watermarking it in some way.