Bug 436778

Summary: When saving to JPG, white squares appear inside the image
Product: [Applications] krita Reporter: Nikolay Bavkunov <bavkunov.nv>
Component: File formatsAssignee: Nikolay Bavkunov <bavkunov.nv>
Status: RESOLVED NOT A BUG    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.4.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: file "as displayed" after export
white color is selected in the settings
File *KRA
attachment-16498-0.html

Description Nikolay Bavkunov 2021-05-08 14:13:19 UTC
Created attachment 138243 [details]
file "as displayed" after export

SUMMARY


STEPS TO REPRODUCE
1. File->Export
2. With any further settings for exporting to JPG, the file is obtained with "white squares" (must be a single fill)


OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-05-08 14:15:14 UTC
JPEG doesn't support transparancy, so it needs to save with a background color.
Comment 2 Nikolay Bavkunov 2021-05-08 14:20:57 UTC
Created attachment 138244 [details]
white color is selected in the settings
Comment 3 Nikolay Bavkunov 2021-05-08 14:22:49 UTC
The export settings are set to white. File (* kra) does not contain transparency
Comment 4 Nikolay Bavkunov 2021-05-08 14:26:04 UTC
Created attachment 138245 [details]
File *KRA
Comment 5 Nikolay Bavkunov 2021-05-08 16:06:47 UTC
Created attachment 138246 [details]
attachment-16498-0.html

The export settings are set to white. File (* kra) does not contain
transparency

сб, 8 мая 2021 г. в 18:15, Halla Rempt <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=436778
>
> Halla Rempt <halla@valdyas.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>          Resolution|---                         |NOT A BUG
>              Status|REPORTED                    |RESOLVED
>                  CC|                            |halla@valdyas.org
>
> --- Comment #1 from Halla Rempt <halla@valdyas.org> ---
> JPEG doesn't support transparancy, so it needs to save with a background
> color.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 6 Halla Rempt 2021-05-08 16:08:05 UTC
If there is no transparency, then there is no fill color. However, your .kra file does have exactlyu those white squares in the first photo. You are also working in 16 bits floating point sRGB with a linear light icc profile, which you probably shouldn't do, because that's for movie scenes. 

This is not a bug. Please read https://docs.krita.org/en/general_concepts/colors/linear_and_gamma.html about gamma and linear light.