-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Write Metadata like Release Date&Time into Images #374
Comments
+1, this would come in extremely handy. This could be done by using exiftool to write the metadata. |
I surveyed the landscape for implementing this:
So the exif package looks like a reasonable path to take. Since XMP is an Adobe spaghetti standard of fraken-XML implementing a pure-Python parser seems way out of scope of sanity and having a binary library dependency seems like a no-go. A shame since in theory XMP is way more sane to actually use since its not fixed-index binary data throughout your image file. |
Is it possible using external tools and a wrapper like how ffmpeg is used? Exiftool is a handy tool for doing these things. It could write EXIF, IPTC and XMP, available on Windows, Linux and MacOS, and is actively maintained. Exiftool itself is using the same license as perl (GNU or the "Artistic License"). |
Would be really useful to classify images. |
Can this be done for videos too? Just generally all downloaded files? This is kinda what I was trying to achieve in #1884 - embed the post url into the file. |
As basically already mentioned in here: Not without an external dependency (like Exiftool). Edit: Of course it is also possible to do this directly with Python.. but this would be a massive increase of the codebase, I guess, because this would need to be rolled by hand But it should actually be possible already... So, based on these... ...the {
"name" : "exec",
"async" : false,
"command": ["/path/to/exiftool-binary", "-keywords={category} -keywords={title}", "{_filename}"],
"event" : "after"
}
This is only a basic example of the Exiftool CLI syntax, obviously. But the principle should stand. So, if someone wants to try :) |
@Hrxn this is insanely helpful! I tried:
(had to use Edit: Oh so it does apparently work for videos. But not images. I guess images don't have a Comments field? But then, there's definitely a Comments field in Windows' File Properties window for jpgs.. Is there maybe a field that's common across both video, audio and images? Edit 2: I've also realized some of the downloaded pngs (like 50%!!) don't even have a Edit 3: Disregard Edit 2. PNGs do have a Title field, but Windows doesn't show them for PNGs. This could be useful for those on Windows: https://exiftool.org/forum/index.php/topic,6591.msg32875.html#msg32875 |
This would be very useful for downloading flickr photos with tags, titles and descriptions and written in EXIF or IPTC fields of the jpeg. But is it possible to use gallery-dl to acquire flickr photo page metadata info about location? Example photo. |
Flickr started stripping Exif tags from uploaded files at some point and making them available through webpage only. The necessary step would be extracting them as gallery-dl keywords. Then they could be reapplied to file with postprocessor as demonstrated above |
As talked in #248 it is possible to write all available metadata into file or folder names. So why not write them into picture's EXIF data for photo management softwares like DigiKam?
Besides, it is possible to add EXIF data into a png file.
The text was updated successfully, but these errors were encountered: