Bug 363960

Summary: Metadata lost after image processing and saving in jpeg
Product: [Applications] krita Reporter: Roman <chelovekskameroi>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: halla, sven.langkamp
Priority: NOR    
Version: 3.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman 2016-06-04 21:31:15 UTC
When I process any image with metadata (exif), especially add, copy or edit layers and save it in jpeg, I lose all of them. No exif found in saved jpegs. 

Reproducible: Always

Steps to Reproduce:
1. Open image with metadata (any photo for example)
2. Copy layer or paste a new one.
3. Save in jpeg. 
4. Check if exif data is visible in any image viewer (I use geeqie). 

Actual Results:  
No exif data visible in processed and saved jpeg file.

Expected Results:  
Existent metadata must be saved if I didn't hide them. 

Krita 3, Krita 2.9, Krita 3 test. 
Ubuntu 16.04.
2x AMD Opteron with 8 cores, 16 gb ram, Nvidia Quadro 4000.
Comment 1 Halla Rempt 2016-10-29 15:02:53 UTC
Hi Roman,

I'm sorry, but this is not a bug. Metadata is associated with a layer, not with an image. If you add another layer, and save to .kra, the metadata associated with the layers will be kept. If you export your image to jpg without explicitly merging down the layers so you have only one layer left, Krita will only save the root group layer, and that doesn't have any metadata.

If you want the metadata to be saved to jpeg, you should explicitly and manually merge down your layer stack; Krita will ask you how the metadata of the layers should be merged to one set of metadata, and then will save the result correctly.