Bug 414259 - Inconsistent scaling with vertically tall, thin predefined brush tips
Summary: Inconsistent scaling with vertically tall, thin predefined brush tips
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Usability (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-18 09:34 UTC by M
Modified: 2019-11-21 15:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Tall brush tip for testing. (8.04 KB, image/x-gimp-gbr)
2019-11-18 09:34 UTC, M
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M 2019-11-18 09:34:17 UTC
Created attachment 123982 [details]
Tall brush tip for testing.

SUMMARY
Using a predefined brush tip that is vertically long but horizontally slim will cause a way huger brush size than the set pixel value. On the other hand, horizontally wide and vertically short ones scale correctly. Auto tips with a very low ratio value also behave correctly.

STEPS TO REPRODUCE
1. Create a tall bitmap brush tip or use the attached example.
2. Compare the resulting size of the brush outline and stroke with other brush tips.

OBSERVED RESULT
Giant brush size, depending on tip's aspect ratio.

EXPECTED RESULT
Same scaling as the well behaved tips.

SOFTWARE/OS VERSIONS
Master (git 938bf9e).
Comment 1 Ahab Greybeard 2019-11-21 15:24:37 UTC
I can confrim this for the 4.2.8 beta 1 appimage.

For the example brush tip given, which has an aspect ratio of 512/16 = 32, the brush is 32 times higher that the set size.  If this is changed to a 256/16 = 16 aspect ratio gbr file then it is 16 times higher.
Placing the brush image on a 512 x 512 white background gives a brush that is the same height as the set size.
Placing it on a 256 x 512 white background gives a brush that is 2 times higher than the set size.