Bug 375002 - Using some textures corrupt brush preset
Summary: Using some textures corrupt brush preset
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: 3.1.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-13 10:47 UTC by DoubleDee
Modified: 2021-07-29 12:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DoubleDee 2017-01-13 10:47:38 UTC
When ceratin textures are used for a brush and saved as a preset, it doesn't load after restarting.
Brush preset is still in the resources folder and has size over 9 mb for unknown reason.
Attachment that contains corrupted brush preset and a texture that corrupts it: https://drive.google.com/file/d/0By_4ivKDlzf2eS1udlFmWmljQzg/view?usp=sharing

How to reproduce:
1. Download an attachment and install the pattern.
2. In Krita, chose random brush and use this pattern as a texture.
3. Save as a brush preset.
4. Restart program and try to find it in the brush list.
Comment 1 Halla Rempt 2017-11-23 09:51:01 UTC
I see this happening:

libpng warning: zTXt: truncated

And since the pattern is stored in the txt section of a png image, it could just mean that this pattern is too big for libpng to handle.
Comment 2 Halla Rempt 2021-07-29 12:21:21 UTC
This is actually fixed now...

commit 12721adae0937a82644063705a18bae33277cd87
Author: Halla Rempt <halla@valdyas.org>, Wed Dec 30 10:40:59 2020 +0100 (7 months ago)
Committer: Halla Rempt <halla@valdyas.org>, Wed Dec 30 10:41:42 2020 +0100 (7 months ago)
Follows: v4.3.0-prealpha
Branches: <Expand>

Remove the "png user limits" when reading/write png files

This makes it possible to read PNG files that contained Adobe XMP
metadata.