Summary: | Krita Version 5.1.1 & 5.1.3 not reading in a psd file well and Krita version 4.4.5 reads it in fine | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | TG <tomgooding> |
Component: | General | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amy, halla, nate, tomgooding |
Priority: | NOR | Keywords: | regression |
Version: | 5.1.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/0f826dd72121d873450f9e2b72e6df82c04169ea | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Krita version 5.1.1 distorted .psd file |
Description
TG
2022-11-30 01:17:47 UTC
Created attachment 154157 [details]
Krita version 5.1.1 distorted .psd file
Could you please attach the original psd file instead of a screenshot? Here is the .psd file that causes the distorted image when imported using Krita 5.1.1 or Krita 5.1.3 This file opens fine in Krita 4.something If the .psd file is too large it can be accessed here "https://drive.google.com/file/d/170JPio5Qg1XySaMIR6nJpXi3ow0aJ_b2/view?usp=sharing" Taking it, let's see what I can find. (In reply to amyspark from comment #4) > Taking it, let's see what I can find. Very good, thank you The file you supplied does not comply with the PackBits compression scheme. In v5, I ensured that whenever the decompression routine throws an error code, it is acted upon by zeroing the relevant row, which is causing this bug. The workaround is easy, but I'd like to confirm first why this is the case. Git commit 5b48a3994c0161685cebad10db10c93669e16ca6 by L. E. Segovia. Committed on 23/12/2022 at 13:47. Pushed by lsegovia into branch 'master'. PSD: reimplement the PackBits decompressor This commit reimplements the decompression routine in C++11 to enable proper bounds checking, logging, and skipping the unnecessary copies. M +44 -93 libs/psdutils/compression.cpp https://invent.kde.org/graphics/krita/commit/5b48a3994c0161685cebad10db10c93669e16ca6 Git commit 0f826dd72121d873450f9e2b72e6df82c04169ea by L. E. Segovia. Committed on 23/12/2022 at 13:54. Pushed by lsegovia into branch 'krita/5.1'. PSD: reimplement the PackBits decompressor This commit reimplements the decompression routine in C++11 to enable proper bounds checking, logging, and skipping the unnecessary copies. M +44 -93 libs/psdutils/compression.cpp https://invent.kde.org/graphics/krita/commit/0f826dd72121d873450f9e2b72e6df82c04169ea (In reply to amyspark from comment #8) > Git commit 0f826dd72121d873450f9e2b72e6df82c04169ea by L. E. Segovia. > Committed on 23/12/2022 at 13:54. > Pushed by lsegovia into branch 'krita/5.1'. > > PSD: reimplement the PackBits decompressor > > This commit reimplements the decompression routine in C++11 to enable > proper bounds checking, logging, and skipping the unnecessary copies. > > M +44 -93 libs/psdutils/compression.cpp > > https://invent.kde.org/graphics/krita/commit/ > 0f826dd72121d873450f9e2b72e6df82c04169ea Not sure what all of the above comment means, but it sounds like the problem was determined, a fix created and krita version 5.1 will not have this error. Thank you |