[gimp/gimp-2-6] file-png: Specify the interlace type explicitly (cherry picked from commit 4fa2bbabf9959dc8bebc45fe2
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] file-png: Specify the interlace type explicitly (cherry picked from commit 4fa2bbabf9959dc8bebc45fe2
- Date: Thu, 17 Nov 2011 16:01:23 +0000 (UTC)
commit f0fb4aaf4eddb3f2798c429117f9169a7347c4db
Author: Mukund Sivaraman <muks banu com>
Date: Thu May 5 18:53:11 2011 +0530
file-png: Specify the interlace type explicitly
(cherry picked from commit 4fa2bbabf9959dc8bebc45fe263e737198c30e99)
plug-ins/common/file-png.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 619a818..8eca75d 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1477,7 +1477,7 @@ save_image (const gchar *filename,
png_set_IHDR (pp, info, drawable->width, drawable->height,
bit_depth,
color_type,
- pngvals.interlaced,
+ pngvals.interlaced ? PNG_INTERLACE_ADAM7 : PNG_INTERLACE_NONE,
PNG_COMPRESSION_TYPE_BASE,
PNG_FILTER_TYPE_BASE);
png_set_compression_level (pp, pngvals.compression_level);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]