https://bugs.kde.org/show_bug.cgi?id=405684

            Bug ID: 405684
           Summary: Flatten image with canvas background color gives
                    non-transparent background in result
           Product: krita
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Layer Stack
          Assignee: krita-bugs-n...@kde.org
          Reporter: tamtamy.tym...@gmail.com
  Target Milestone: ---

Created attachment 118935
  --> https://bugs.kde.org/attachment.cgi?id=118935&action=edit
Example test file

SUMMARY
Background color is not saved in the image while flattening. This results in a
wrong results if the background color is not purely transparent.


STEPS TO REPRODUCE
1. Open file with opaque background color. Example file attached.
2. Flatten using Layer -> Flatten Image.

OBSERVED RESULT
3a. The result looks the same as expected, however if you hide the only layer,
you'll see transparency grid... which means parts that were transparent before
were changed to the color of the previously selected background color.
4a. If you go to Image -> Properties, you'll see Background color set as black,
0% opacity, no matter what was the previous background color.

EXPECTED RESULT
3b. The result looks the same, but the previously transparent parts are still
transparent; transparency just look like a solid color, according to the
settings chosen in Image -> Properties.
4b. The same color is set in Image -> Properties before and after flattening.

NOTES:
- if you undo flattening while having the new layer visible, the undo will be
correct, including the correct background color. If you however undo flattening
when the layer is hidden, you'll get all of your previous layers correct, but
the background color will be set to transparent.
- if you flatten image with transparent background color, but the value of the
color will be different from black, after flattening the result will be
correct, but the background color will be set to black, 0% opacity.
- test file was taken from bug 405366 , just renamed.

SOFTWARE/OS VERSIONS
Krita

 Version: 4.2.0-pre-alpha (git fbba406)
 Languages: pl
 Hidpi: false

Qt

  Version (compiled): 5.11.3
  Version (loaded): 5.11.3

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-45-generic
  Pretty Productname: Linux Mint 19.1
  Product Type: linuxmint
  Product Version: 19.1


Hardware Information

  GPU Acceleration: auto
  Memory: 7771 Mb
  Number of Cores: 4
  Swap Location: /tmp

ADDITIONAL INFORMATION
Git hash: fbba406b15d7f6b066fd40

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to