Summary: | Unable to save image with a small width | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Phil <scatcoder> |
Component: | General | Assignee: | Lynx3d <lynx.mw+kde> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | amy, lynx.mw+kde |
Priority: | NOR | ||
Version: | 5.1.1 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/67aad01fcd67f409b97adc4f1138de794ed3b676 | Version Fixed In: | |
Sentry Crash Report: |
Description
Phil
2022-10-17 20:33:05 UTC
That's an interesting one, the extreme aspect ratio makes the thumbnail generation fail... Shouldn't be too hard to fix. Git commit 392fd207cd897ce51f1fb76e080e79c7e35f962d by Mathias Wein. Committed on 17/10/2022 at 22:18. Pushed by mwein into branch 'master'. Fix saving files with extreme aspect ratio Saving failed because thumbnail generation didn't take into account that scaling a QSize with KeepAspectRatio may round one dimension down to zero. This caused even the recovery path to generate an invalid thumbnail image and saving aborted. M +2 -2 libs/ui/KisDocument.cpp M +3 -2 plugins/impex/libkra/kra_converter.cpp https://invent.kde.org/graphics/krita/commit/392fd207cd897ce51f1fb76e080e79c7e35f962d Git commit 67aad01fcd67f409b97adc4f1138de794ed3b676 by Mathias Wein. Committed on 17/10/2022 at 22:21. Pushed by mwein into branch 'krita/5.1'. Fix saving files with extreme aspect ratio Saving failed because thumbnail generation didn't take into account that scaling a QSize with KeepAspectRatio may round one dimension down to zero. This caused even the recovery path to generate an invalid thumbnail image and saving aborted. (cherry picked from commit 392fd207cd897ce51f1fb76e080e79c7e35f962d) M +2 -2 libs/ui/KisDocument.cpp M +3 -2 plugins/impex/libkra/kra_converter.cpp https://invent.kde.org/graphics/krita/commit/67aad01fcd67f409b97adc4f1138de794ed3b676 yay! I was helping my daughter fiddle with some textures for bloxd.io. Definitely an odd scenario. Thanks! |