| Summary: | Embed date and the time in EXIF metadata | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | 21Naown |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | bharadwaj.raju777, kde, meven.car, meven29, meven, nate, noahadvs |
| Priority: | NOR | ||
| Version First Reported In: | 20.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
21Naown
2020-10-04 21:59:31 UTC
Can you explain what the bug is? Or what feature you want? In the metadata, I would like to set screenshot’s date and time. I don't fully understand. If you take a screenshot the file has the time in its creation Date, doesn't it? Or are you thinking about some other metadata? There is an option to set screenshot’s date and time in the filename. There is not an option to set screenshot’s date and time in the metadata. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Requested information was added with comment 4; changing status. I guess it is about exif metadata. Yes for some file format. It may be different for the PNG file format. PNG doesn't have EXIF, it has its own metadata: https://www.w3.org/TR/PNG/#11textinfo If we add such a feature, it should probably be behind an option, I think? And on or off by default? > If we add such a feature, it should probably be behind an option, I think? And on or off by default? I'd say on by default,. We would need to link to libpng, and re-use what Qt also does: https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/image/qpnghandler.cpp#n786 I also wonder if kfile_metadata can extract those. (In reply to Méven Car from comment #10) > We would need to link to libpng, and re-use what Qt also does: > https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/image/qpnghandler.cpp#n786 Not necessary, QImageWriter has what we need: https://doc.qt.io/qt-5/qimagewriter.html#setText (In reply to Bharadwaj Raju from comment #11) > (In reply to Méven Car from comment #10) > > We would need to link to libpng, and re-use what Qt also does: > > https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/image/qpnghandler.cpp#n786 > > Not necessary, QImageWriter has what we need: > https://doc.qt.io/qt-5/qimagewriter.html#setText We could save that in the field "Creation Time" (already supported in kfilemetadata) as specified in https://www.w3.org/TR/PNG/#11keywords. But `identify -verbose ../Screenshot_20220411_152621-1.png` shows it is already stored in files in properties date:create and date:modify not accessible through QImage ATM. So I think linking to libpng in kfilemetada should be the way to go to improve compatibility without increasing data storage occupation. |