Bug 414735 - Author Data not Saved when Saving/Exporting to PNG/JPG
Summary: Author Data not Saved when Saving/Exporting to PNG/JPG
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.2.7.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-12-02 03:23 UTC by tusooa
Modified: 2020-05-12 05:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tusooa 2019-12-02 03:23:54 UTC
SUMMARY
Taken from https://www.reddit.com/r/krita/comments/e3lkds/cant_get_author_information_to_save_to_file/

Author data cannot be saved/loaded properly when exporting or saving to PNG or JPG files.


STEPS TO REPRODUCE
1. Edit author data in Configure Krita
2. Settings -> Active Author Profile -> select some profile other than anonymous.
3. Create a Krita document. Save it as a kra file.
4. File -> Document Information -> Author. 
5. Export it to a png file. Check "Save metadata" and "Sign with author profile data."
6. Open the png file.
7. File -> Document Information -> Author.
8. Modify the png file and save it in-place. Check "Save metadata" and "Sign with author profile data."
9. File -> Document Information -> Author.
10. Close the png file, and reopen it.
11. File -> Document Information -> Author.
12. Repeat 5-11 with jpg.

OBSERVED RESULT
Only in steps 4, 9 can I saw the author information.

EXPECTED RESULT
We should be able to see author information in 7 and 11 as well.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.12.3 

ADDITIONAL INFORMATION
For the JPG case, I am able to see the author filled in in the properties dialog of Windows Explorer, so it could potentially be a loading issue, rather than a saving one.
Comment 1 wolthera 2019-12-03 09:50:24 UTC
The author data is saved, but it gets loaded into layer->metadata.
Comment 2 Halla Rempt 2020-05-06 13:28:28 UTC
Can we then close this report?
Comment 3 vanyossi 2020-05-12 04:57:37 UTC
Lets close this bug. The metadata is indeed saved into the PNG and the JPG. you can check this using "imagemagick identify". The issue is that we are not reading the metadata into the document information but as Wolthera said, we put it into the layer->metadata keys. Note that we do not load all the keys into the layer metadata.
Comment 4 vanyossi 2020-05-12 05:02:29 UTC
Relevant related:
bug 396672
bug 413970