Bug 436778 - When saving to JPG, white squares appear inside the image
Summary: When saving to JPG, white squares appear inside the image
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.4.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Nikolay Bavkunov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-08 14:13 UTC by Nikolay Bavkunov
Modified: 2021-05-08 16:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
file "as displayed" after export (1.17 MB, image/jpeg)
2021-05-08 14:13 UTC, Nikolay Bavkunov
Details
white color is selected in the settings (77.49 KB, image/jpeg)
2021-05-08 14:20 UTC, Nikolay Bavkunov
Details
File *KRA (3.38 MB, application/zip)
2021-05-08 14:26 UTC, Nikolay Bavkunov
Details
attachment-16498-0.html (1.44 KB, text/html)
2021-05-08 16:06 UTC, Nikolay Bavkunov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.