220 points · by NKosmatos · 3y ago · 65 comments
pip install xklb[full]
library fsadd --image ./photos/
Actually, I'm not sure if I wrote my pyproject.toml correctly. You may need to install PyExifTool directly: https://github.com/chapmanjacobd/library/blob/f778e22bf80c58... # 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.mp3It works on multiple files too. Much less flexible than exiftool, but still sometimes useful.
When on mobile, I use Imagepipe for this, it can be found on F-droid.
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.
exiftool -all= -tagsfromfile @ -AllDates -Make -Model -LensModel -Artist -FNumber -ISO -ExposureTime -ExposureProgram -ExposureMode -ExposureCompensation -FocalLength -WhiteBalance -Flash photo.jpg* https://en.wikipedia.org/wiki/Photo_response_non-uniformity
> 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.
Not affiliated, just love it.
What is the date of an image other than when it was taken?
Then you have in the GPS tags: GPSTimeStamp, GPSDateStamp
And those are just the common tags...
Next question is, what format do these tags use. DateTime, while it's supposed to be "YYYY:MM:DD HH:MM:SS", is generally a free-for-all in practice when it comes to the order of the date components, the format of the components, or what separator to use.
I've seen software write DateTimes e.g. like "1-12-23/1:13pm" instead of "2013:01:12 13:13:00". Whether it was actually M-DD-YY or D-MM-YY, etc in this case is more of guesswork when all the values are below 12 :P
And if I remember correctly there was one piece of software which wrote UTF-16-BE strings instead of the mandated ASCII.
you can image an image (say a print) so that the newly taken image has a NOW() like date but you can then put in the date of the actual image into metadata.
Trying to get exif to handle this kind of random approximation to date is really hard. The systems just don't agree "how". Dublin core has several approaches. They map into EXIF. Kinda.
Google, simply never rescan. If you autoload the image as yesterday, that's its date forever. Change by hand in photos is hard. Microsoft does appear to relearn. Apple? Not sure.
EXIF has almost 500 fields, but look at 0x9003 DateTimeOriginal, 0x9004 CreateDate.
I believe the original author is still very active on ExifTool's forum and helps people day in day out.
choco install exiftool --version=12.47 && choco pin add -n exiftoolHow might I use the tool for editing geodata? Their forum seems to point to the use of other tools.
It’s not obvious at first glance but it handles an incredibly long tail of non-standard maker notes and other odds and ends I’ll never get to. Stuff from hardware over multiple decades. Few authors have can match this kind of dedication. Deserves a FLOSS award of some kind.
Highly recommended on Windows in stripper by steelbytes available from https://www.softpedia.com/get/Multimedia/Graphic/Graphic-Oth...
cc -o exifstrip main.c # this is hacker news, after allIt is not only the connection speed but also the storage space that is a consideration. I use small form factor computers with limited storage space. I also like things that are feasible on slower connections. Generally, unless I am using a program on a regular basis I will uninstall a program after using it. For example, if I need Perl for some task, such as compiling OpenSSL, I will install it, perform the task, then uninstall. Compared to exiftoo, exiv2 is a smaller, faster download and as suggested by another commenter, it finishes faster than exiftool. I choose exiv2 over exiftool to same time and space. Every user is different and exiv2 works better for this user.
The reason I do not keep large scripting languages like Perl, etc. installed is because I do not use them regularly. The ash shell is what I use the most. I keep Lua installed, since I use that with haproxy every day.
This suggests you are a maintainer or author of the tool you recommend over exiftool. Your other two comments are written in a way to suggest a disinterested preference. Which is it?
I regularly use it to backfill gps tags on my photos as: exiftool -geotag track.gpx *.JPG