5 ms·
Practical use, before uploading files publicly, I often want to remove some important metadata. exiftool makes it really easy: # List all metadata of a fi
by freedomben 4y ago
Practical use, before uploading files publicly, I often want to remove some important metadata. exiftool makes it really easy:
# List all metadata of a file (exif)
exiftool -s screenshot.png
# Remove GPS coords in a file
exiftool -gps:all= filename.jpg
# Clear out all metadata
exiftool -all= filename.jpg somesong.mp3
- aendruk 4y agoRe the last example, is there a way to distinguish between functionally extraneous metadata and “meta”data that is used for presentation? I wouldn’t want to carelessly drop e.g. image orientation or the color profile.
- davchana 4y agoOr the fstop, focal length, & stuff.
- aendruk 4y agoIf you prefer you can preserve those individually with command line arguments, but I’d say that takes us out of the territory of “clear out all metadata”. What I’m trying to highlight is that an image’s literal metadata may include some data that in practice would be considered part of the main content. It would be nice if we had some clear, common language with which to draw that distinction rather then resort to enumerating individual fields.
- yakubin 4y agoIt would be nice. Currently, I have exceptions for the orientation and ICC profile tags in my static site generator for my photography website, but I could be missing something.
- ghostpepper 4y agoI don't think that stuff affects presentation, does it?
- davchana 4y agoNo, it doesn't. But sometimes, when I see photos on flickr, or private blogs, I like to see those parameters.
- darekkay 4y agoHere's what I'm using to strip all metadata except photographer-relevant stuff: exiftool -all= -tagsfromfile @ -AllDates -Make -Model -LensModel -Artist -FNumber -ISO -ExposureTime -ExposureProgram -ExposureMode -ExposureCompensation -FocalLength -WhiteBalance -Flash photo.jpg
- ajot 4y agoI do the same, even if I know the metadata is removed before the image is shown to other users (e.g. Discord). When on mobile, I use Imagepipe for this, it can be found on F-droid.
- accrual 4y agoI recently learned Windows has similar functionality built in. Right-click image > Properties > Details > Remove Properties and Personal Information. It works on multiple files too. Much less flexible than exiftool, but still sometimes useful.
- Tempest1981 4y agoVery helpful, thanks! Anything similar on macOS/iOS?
- eviks 4y agoCheck out https://imageoptim.com/mac https://imageoptim.com/mac exit viewer app ios
- almog 4y agoSince this is my main exiftool, I thought I might ask: are you aware of any tool that can be used for preventing PRNU* fingerprinting? * https://en.wikipedia.org/wiki/Photo_response_non-uniformity https://en.wikipedia.org/wiki/Photo_response_non-uniformity
- galleywest200 4y agoNot OP -- while I do not know of a tool that can do that off-hand it seems that it _should_ be possible as this is not applied at the hardware level: > This table is either carried in camera non-volatile memory and dynamically applied to the image on each capture, or ships with the camera to be applied by an external image processing and correcting pipeline.
- almog 4y agoIt would have been best have to have that table randomly generated for each photo at the source and perhaps that's possible with smartphones, but for photos taken with an ad-hoc camera (point and shoot, mirrorless, etc.) I'd guess it's not option unless maybe if you'd flash a modified firmware.