Bug 375002

Summary: Using some textures corrupt brush preset
Product: [Applications] krita Reporter: DoubleDee <kopi56>
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 3.1.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

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.