Bug 422805 - Not correct size an mask layer when converting it from the paint layer
Summary: Not correct size an mask layer when converting it from the paint layer
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resize/Scale Image/Layer (show other bugs)
Version: 4.3.0-beta2
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-11 09:36 UTC by Alexey
Modified: 2020-06-13 10:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Not correct size an mask layer when converting it from the paint layer and invert (517.72 KB, video/mp4)
2020-06-11 09:36 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-06-11 09:36:13 UTC
Created attachment 129227 [details]
Not correct size an mask layer when converting it from the paint layer and invert

Not correct size an mask layer when converting it from the paint layer and invert.


STEPS TO REPRODUCE
1. Create a paint layer №1 with an color
2. Create a paint layer №2 with black color
3. Convert №2 to transparency mask
4. Use invert color for p.l. №2

OBSERVED RESULT
Mask size not equal layer size

EXPECTED RESULT
Mask size equal layer size

See attached video.
Comment 1 Alexey 2020-06-11 09:37:27 UTC
Not correct size an mask layer when converting it from the paint layer and invert

Not correct size an mask layer when converting it from the paint layer and invert.


STEPS TO REPRODUCE
1. Create a paint layer №1 with an color
2. Create a paint layer №2 with white color
3. Convert №2 to transparency mask
4. Use invert color for p.l. №2

OBSERVED RESULT
Mask size not equal layer size

EXPECTED RESULT
Mask size equal layer size

See attached video.
Comment 2 Alexey 2020-06-11 09:38:05 UTC
Not correct size an mask layer when converting it from the paint layer and invert


STEPS TO REPRODUCE
1. Create a paint layer №1 with an color
2. Create a paint layer №2 with white color
3. Convert №2 to transparency mask
4. Use invert color for p.l. №2

OBSERVED RESULT
Mask size not equal layer size

EXPECTED RESULT
Mask size equal layer size

See attached video.
Comment 3 Alexey 2020-06-11 09:46:16 UTC
I don't know how to delete the first and second comments ::)
Comment 4 Dmitry Kazakov 2020-06-13 09:16:40 UTC
Okay, I can reproduce :)
Comment 5 Dmitry Kazakov 2020-06-13 09:43:54 UTC
Git commit 0fc93bea34b79171b7427e442f342d36dc521426 by Dmitry Kazakov.
Committed on 13/06/2020 at 09:42.
Pushed by dkazakov into branch 'krita/4.3'.

Fix applying invert filter on transparency masks

We should care about KisFilter::needsTransparentPixels() when
auto-cropping processing area.
Related: bug 329846

M  +3    -0    libs/ui/tool/strokes/kis_filter_stroke_strategy.cpp

https://invent.kde.org/graphics/krita/commit/0fc93bea34b79171b7427e442f342d36dc521426
Comment 6 Dmitry Kazakov 2020-06-13 09:44:19 UTC
Git commit 0c68de311da58565ef93ebe2baca24286900e025 by Dmitry Kazakov.
Committed on 13/06/2020 at 09:44.
Pushed by dkazakov into branch 'master'.

Fix applying invert filter on transparency masks

We should care about KisFilter::needsTransparentPixels() when
auto-cropping processing area.
Related: bug 329846

M  +3    -0    libs/ui/tool/strokes/kis_filter_stroke_strategy.cpp

https://invent.kde.org/graphics/krita/commit/0c68de311da58565ef93ebe2baca24286900e025
Comment 7 Alexey 2020-06-13 10:36:40 UTC
Good job! ::)(In reply to Dmitry Kazakov from comment #6)
> Git commit 0c68de311da58565ef93ebe2baca24286900e025 by Dmitry Kazakov.
> Committed on 13/06/2020 at 09:44.
> Pushed by dkazakov into branch 'master'.
> 
> Fix applying invert filter on transparency masks
> 
> We should care about KisFilter::needsTransparentPixels() when
> auto-cropping processing area.
> Related: bug 329846
> 
> M  +3    -0    libs/ui/tool/strokes/kis_filter_stroke_strategy.cpp
> 
> https://invent.kde.org/graphics/krita/commit/
> 0c68de311da58565ef93ebe2baca24286900e025