[gimp/gimp-2-8] Bug 721135 - Unable to export to .png - error: known incorrect sRGB profile
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 721135 - Unable to export to .png - error: known incorrect sRGB profile
- Date: Sun, 16 Feb 2014 04:10:19 +0000 (UTC)
commit 640f11f9c1d4cf45b81fdadc9555d891baab897b
Author: Michael Henning <drawoc darkrefraction com>
Date: Sat Feb 15 22:55:18 2014 -0500
Bug 721135 - Unable to export to .png - error: known incorrect sRGB profile
Some libpng errors can safely be marked as nonfatal, which is much
better than simply failing in those cases.
Thanks to John Bowler for pointing out this solution.
(cherry picked from commit 7c493f76f836095adad08205fdfd4522e05e0bd4)
plug-ins/common/file-png.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 885c77a..e3df90b 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -745,6 +745,9 @@ load_image (const gchar *filename,
return image;
}
+ /* Change some libpng errors to warnings (e.g. bug 721135) */
+ png_set_benign_errors (pp, TRUE);
+
/*
* Open the file and initialize the PNG read "engine"...
*/
@@ -1348,6 +1351,9 @@ save_image (const gchar *filename,
return FALSE;
}
+ /* Change some libpng errors to warnings (e.g. bug 721135) */
+ png_set_benign_errors (pp, TRUE);
+
/*
* Open the file and initialize the PNG write "engine"...
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]