Patch for smudge

JL VT pentalis at gmail.com
Sat Oct 16 04:17:17 CEST 2010


On Fri, Oct 15, 2010 at 5:22 AM, Boudewijn Rempt <boud at valdyas.org> wrote:
> On Thursday 23 September 2010, JL VT wrote:
>> I didn't want to double post but it happened!
>>
>> On Thu, Sep 23, 2010 at 9:34 AM, JL VT <pentalis at gmail.com> wrote:
>> > On Thursday 23 September 2010, cberger at cberger.net wrote:
>> >>Rereading your patch, I notice you did not exactly followed my suggestion on
>> >>IRC :) To make things clear, I have made a patch that does what I suggested.
>> >>
>> >>It has decent smudging (I didn't compare it with previous code), it smudges
>> >>transparent pixels. But there is a square block bug, when drawing on
>> >>transparent pixels (as can be seen in [1]).
>> >>
>> >>I let you investigate the block stuff :)
>> >>
>> >>[1] http://cyrille.diwi.org/tmp/krita/smudgetest.png
>> >
>> > Clever patch!, but it is somewhat equivalent to the old smudge op
>> > behavior, and there's gray/black smudges present too. It still
>> > presents the problems Animtim describes in his bug report:
>> >
>> > https://bugs.kde.org/attachment.cgi?id=51647
>> >
>>
>> NEVER MIND
>>
>> I just tested Lukas's patch again, and it displays the same problem
>> animtim reported when using the normal composite op, just like
>> Cyrille's patch.
>>
>> However, when using the copy composite op, both Lukas's patch and
>> Cyrille's patch achieve the effect desired by animtim.
>>
>> Table1: tabulated results for animtim's request
>> (https://bugs.kde.org/attachment.cgi?id=51647):
>> ============================
>> Version: (composite op) result; (composite op) result; etc.
>> -------------------------------------------------------
>> Trunk: (normal) bad, increases opacity; (copy) bad, decreases opacity.
>> Lukas's patch: (normal) bad, increases opacity and black smudges;
>> (copy) good but with white square artifact on the right side of the
>> dab.
>> Cyrille's patch: (normal) bad, increases opacity and black smudges;
>> (copy) good but with white square artifact on the right side of the
>> dab.
>>
>
> Can you add the relevant information to the right bugs ( bug  217124 or bug 245130 according to Lukas)? It's getting hard to keep track of all the issues.

Currently the only issues left are related to the dab changing size
during the stroke. I just added the details as an answer to bug
245130. The rest has all been solved.

I think the best solution for now is to deactivate the option. In 2.4
it can be readded with a different algorithm that doesn't suffer from
the resize shortcomings (I have a copy of that in my PC).


More information about the kimageshop mailing list