After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771020 - Square artifacts using Clipboard feature to paint tools
Square artifacts using Clipboard feature to paint tools
Status: RESOLVED DUPLICATE of bug 780950
Product: GIMP
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2016-09-07 18:27 UTC by jose americo gobbo
Modified: 2017-04-12 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test clipboard feature on paintbrush with white canvas (98.89 KB, image/png)
2016-09-07 18:27 UTC, jose americo gobbo
Details
test clipboard feature on paintbrush with transparent canvas (112.41 KB, image/png)
2016-09-07 18:28 UTC, jose americo gobbo
Details
test clipboard feature to paint tools (artifacts on paintbrush and airbrush) (201.03 KB, image/png)
2016-09-07 18:29 UTC, jose americo gobbo
Details
Square artifacts and relationship with Angle Parameter (Paint Dynamics) (40.58 KB, image/jpeg)
2016-09-08 16:32 UTC, jose americo gobbo
Details
Force Slider parameter on Tool Options - no dyna | artifacts (61.79 KB, image/jpeg)
2017-02-25 01:54 UTC, jose americo gobbo
Details
Force Slider of Tool Options with dyna | Artifacts (72.49 KB, image/jpeg)
2017-02-25 01:58 UTC, jose americo gobbo
Details
testing the clipboard brush with different layers (261.72 KB, image/png)
2017-03-01 01:51 UTC, jose americo gobbo
Details

Description jose americo gobbo 2016-09-07 18:27:24 UTC
Created attachment 335015 [details]
test clipboard feature on paintbrush with white canvas

When we use the clipboard feature in the some paint tools, as paintbrush and airbrush, these are producing black artifacts around the border.
I have tested 'pencil' and 'clone' and these are working without these artifacts.
Comment 1 jose americo gobbo 2016-09-07 18:28:40 UTC
Created attachment 335016 [details]
test clipboard feature on paintbrush with transparent canvas
Comment 2 jose americo gobbo 2016-09-07 18:29:38 UTC
Created attachment 335017 [details]
test clipboard feature to paint tools (artifacts on paintbrush and airbrush)
Comment 3 jose americo gobbo 2016-09-08 16:32:34 UTC
Created attachment 335129 [details]
Square artifacts and relationship with Angle Parameter (Paint Dynamics)

Redoing the tests, I have found that the 'Angle' parameter is causing the artifacts.
Comment 4 Massimo 2016-09-09 17:16:28 UTC
Does this happen only with master? If it's present also in
gimp-2.8, it could be the same reported here:

https://bugzilla.gnome.org/show_bug.cgi?id=703468
Comment 5 jose americo gobbo 2016-09-09 18:05:00 UTC
(In reply to Massimo from comment #4)
> Does this happen only with master? If it's present also in
> gimp-2.8, it could be the same reported here:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=703468

Only in Git master. This bug (https://bugzilla.gnome.org/show_bug.cgi?id=70346) is the same.
I have tested on gimp 2.8.18 but I don't have had success... was it fixed there?
Comment 6 Michael Schumacher 2016-09-10 22:39:09 UTC
I don't think the bug you linked is the same.
Comment 7 Massimo 2016-09-12 06:50:59 UTC
(In reply to jose americo gobbo from comment #5)
> (In reply to Massimo from comment #4)
> > Does this happen only with master? If it's present also in
> > gimp-2.8, it could be the same reported here:
> > 
> > https://bugzilla.gnome.org/show_bug.cgi?id=703468
> 
> Only in Git master. This bug
> (https://bugzilla.gnome.org/show_bug.cgi?id=70346) is the same.
> I have tested on gimp 2.8.18 but I don't have had success... was it fixed
> there?

So, bug 703468 is still present both in master and gimp-2.8

This 'bug' is present only in master. In master there is
a new "force" paint option slider, setting its value to zero
brings back gimp-2.8 behaviour.

https://git.gnome.org/browse/gimp/tree/app/paint/gimppaintoptions.c#n954

The problem seems to be that when "force" > 0.0 the brush
mask is pressurized, which among other things means it is
subsampled (resampled with sub-pixel offset), but not its
pixmap. This means one side of the brush is sub-pixel cropped
and the opposite is sub-pixel extended where the transformed pixmap
was filled with black.

I don't know what's the meaning of the brush force, so I can't say
if it is working as intended or not.
Comment 8 jose americo gobbo 2016-09-12 13:08:58 UTC
(In reply to Massimo from comment #7)
> I don't know what's the meaning of the brush force, so I can't say
> if it is working as intended or not.

I understood that the 'Force' parameter main scope is be as gain factor curve over single input parameter. If is zero on disable, in theory, the curve is constant=0. If > 0, is used the curve of each Force x Input.
Comment 9 jose americo gobbo 2016-09-12 13:28:51 UTC
(In reply to jose americo gobbo from comment #8)
> (In reply to Massimo from comment #7)
> > I don't know what's the meaning of the brush force, so I can't say
> > if it is working as intended or not.
> 
> I understood that the 'Force' parameter main scope is be as gain factor
> curve over single input parameter. If is zero on disable, in theory, the
> curve is constant=0. If > 0, is used the curve of each Force x Input.

See also this bug report about Force parameter and relation with Paint Dynamics Curves.

https://bugzilla.gnome.org/show_bug.cgi?id=748060

So, I understand that the Force slider on Tool Options must be independent, if you have or not enabled the Force parameter on the Paint Dynamics.
Now, if you modify the values on this slider it not produces any variation on the strokes.

For instance, already, if you test the Hardness slider, this slider is working correctly... if you not have this parameter enabled on paint dynamic... the slider works as discrete control -- I have tested now with a soft brush... 0 => Original stain stroke; 1 => hardest brush.
Comment 10 jose americo gobbo 2016-09-12 13:34:08 UTC
(In reply to jose americo gobbo from comment #9)

> See also this bug report about Force parameter and relation with Paint
> Dynamics Curves.
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=748060
> 
> So, I understand that the Force slider on Tool Options must be independent,
> if you have or not enabled the Force parameter on the Paint Dynamics.
> Now, if you modify the values on this slider it not produces any variation
> on the strokes.
> 
> For instance, already, if you test the Hardness slider, this slider is
> working correctly... if you not have this parameter enabled on paint
> dynamic... the slider works as discrete control -- I have tested now with a
> soft brush... 0 => Original stain stroke; 1 => hardest brush.

The odd behavior is that the Force slider don't working for its scope but is producing this effect that you has related here:

"The problem seems to be that when "force" > 0.0 the brush
mask is pressurized, which among other things means it is
subsampled (resampled with sub-pixel offset), but not its
pixmap. This means one side of the brush is sub-pixel cropped
and the opposite is sub-pixel extended where the transformed pixmap
was filled with black."
Comment 11 jose americo gobbo 2017-02-25 01:54:27 UTC
Created attachment 346688 [details]
Force Slider parameter on Tool Options - no dyna | artifacts

When you have no paint dynamics and you use Tool Options Force Parameter > O the artifacts are visible. In my test I have used zero (no) and 100 (visible).
Comment 12 jose americo gobbo 2017-02-25 01:58:30 UTC
Created attachment 346689 [details]
Force Slider of Tool Options with dyna | Artifacts

When we have a dynamics on, with Force x Pressure (linear), the artifacts are always present (with Force = 0 or Force = 100).
Comment 13 Michael Schumacher 2017-02-28 20:11:00 UTC
This isn't fixed yet to to bug 764619, is it?
Comment 14 jose americo gobbo 2017-03-01 01:51:22 UTC
Created attachment 346947 [details]
testing the clipboard brush with different layers

Isn't fixed yet, apparently the bug 764619 doesn't have relation with this bug.
I have verified again on the GIMP commit 58e5f38 and the bug is present yet.

I have made another test using the clipboard in different kind layers:
[1] sample-layer-no-alpha-white;
[2] sample-with-alpha-white;
[3] sample-transparent.
So, to layers with background color, as white, the bug is present [1] and [2]. When you copy a sample in the transparent layer the bug is not present [3].
Comment 15 jose americo gobbo 2017-03-01 01:57:38 UTC
(In reply to jose americo gobbo from comment #14)
> Created attachment 346947 [details]
> testing the clipboard brush with different layers

A reminder: the attachment 346947 [details] was made without dynamics.
Comment 16 jose americo gobbo 2017-04-12 18:07:16 UTC
The bug is resolved in the my last git master commit 0a42c6b.
I am not sure, but the Ell commit fix the bug.

https://bugzilla.gnome.org/show_bug.cgi?id=780950#c18

commit d4bb12d8b89e30e3f1cdfbe6fba16383a21fd93d
Author: Ell <ell_se@yahoo.com>
Date:   Mon Apr 10 09:41:10 2017 -0400

See also Massimo comment: https://bugzilla.gnome.org/show_bug.cgi?id=771020#c7
Comment 17 Michael Schumacher 2017-04-12 19:05:59 UTC
Then we should resolve this as a duplicate.

*** This bug has been marked as a duplicate of bug 780950 ***