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

            Bug ID: 452146
           Summary: A Copy of a transparency mask or a filter mask is
                    incomplete.
           Product: krita
           Version: nightly build (please specify the git hash!)
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Layer Stack
          Assignee: krita-bugs-n...@kde.org
          Reporter: ahab.greybe...@hotmail.co.uk
  Target Milestone: ---

Created attachment 147876
  --> https://bugs.kde.org/attachment.cgi?id=147876&action=edit
Tranparency and Filter Mask Copy flaw testing

SUMMARY
This is present in versions 4.4.8 onwards and is reported here for the Mar 31
5.1.0-prealpha (git 625152f808) appimage on Debian 10.

A copy of a transparency mask or a filter mask only has correct content in a
region that was painted on.

A test file, 'Test-Trans-Filter-Masks.kra', is attached for convenience of
testing.

STEPS TO REPRODUCE
1. Open the attached testing file and observe the content of Paint-1.
2. Turn on the Trans-1 transparency mask and note the painted content of two
short grey lines.
3. Duplicate Trans-1 then drag it onto Paint-2 and turn on Paint-2.
4. Delete the duplicate of Trans-1.
5. Copy Trans-1 then Paste it onto Paint-2 and observe the effect on Paint-2.
6. Save the file, Close the document, Open it
7. Delete that now working copy of Trans-1 and repeat step 5.
8. Convert the copy of Trans-1 (which is on Paint-2) to a Paint Layer then
Convert the resulting Paint Layer to a Transparency mask on Paint-2.
9. Repeat the processes of Step 2 to Step 8 but with the Filter-1 mask instead
of the Trans-1 mask.

OBSERVED RESULT
3. This works with no problems.
5. The Copy of Trans-1 is only correct within a rectangular area that
corresponds to the bounding box of the painted content, and seems to be
slightly larger that that.
It is transparent outside that area.
6. The Copy of Trans-1 has been 'fixed'.
8. The Converted paint layer is correct and the then Converted tranparency mask
is hence correct.

9. For the Filter-1 mask, similar observations will be made except that for the
Paint Layer conversion process, the filter information is lost (as expected)
and has to be specified again.

These observations are also seen for animated transparency masks and animated
filter masks and also when Copying and then Pasting into a different open
document.

EXPECTED RESULT
The Copied mask should be the same as the original, in all locations.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.1.0-prealpha (git 625152f)
 Languages: en_GB, en, en, en_GB, en
 Hidpi: false

Qt

  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.19.0-20-amd64
  Pretty Productname: Debian GNU/Linux 10 (buster)
  Product Type: debian
  Product Version: 10
  Desktop: MATE

OpenGL Info

  Vendor:  "NVIDIA Corporation" 
  Renderer:  "GeForce GTX 750 Ti/PCIe/SSE2" 
  Version:  "4.6.0 NVIDIA 460.73.01" 
  Shading language:  "4.60 NVIDIA" 
  Requested format:  QSurfaceFormat(version 2.0, options
QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1,
greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize
-1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval
1, colorSpace QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::NoProfile) 
  Current format:  QSurfaceFormat(version 4.6, options
QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24,
redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0,
stencilBufferSize 0, samples -1, swapBehavior
QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace
QSurfaceFormat::DefaultColorSpace, profile 
QSurfaceFormat::CompatibilityProfile) 
     Version: 4.6
     Supports deprecated functions true 
     is OpenGL ES: false 
  supportsBufferMapping: true 
  supportsBufferInvalidation: true

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

Reply via email to