[krita] [Bug 445561] Krita 5 opens this PNG corrupted

amyspark bugzilla_noreply at kde.org
Tue Nov 16 00:55:05 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=445561

--- Comment #2 from amyspark <amy at amyspark.me> ---
Does the following patch help?

```
diff --git a/libs/ui/kis_png_converter.cpp b/libs/ui/kis_png_converter.cpp
index 0ec098ff4f..6d6173623b 100644
--- a/libs/ui/kis_png_converter.cpp
+++ b/libs/ui/kis_png_converter.cpp
@@ -490,6 +490,11 @@ KisImportExportErrorCode
KisPNGConverter::buildImage(QIODevice* iod)
             (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))) {
         png_set_expand(png_ptr);
     }
+
+#if defined(PNG_READ_INTERLACING_SUPPORTED)
+    png_set_interlace_handling(png_ptr);
+#endif
+
     png_read_update_info(png_ptr, info_ptr);

     // Read information about the png
```

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list