[gimp] Bug 741179: Export does not remember compression of input...
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 741179: Export does not remember compression of input...
- Date: Tue, 9 Dec 2014 17:17:54 +0000 (UTC)
commit 068745dc5c968948ef0d10483a72aa207ae5ddf3
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue Dec 9 18:13:35 2014 +0100
Bug 741179: Export does not remember compression of input...
for Deflated TIFF
similar to commit 91738c3b9
plug-ins/common/file-tiff-load.c | 1 +
plug-ins/common/file-tiff-save.c | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/common/file-tiff-load.c
index 647d608..d0cf79c 100644
--- a/plug-ins/common/file-tiff-load.c
+++ b/plug-ins/common/file-tiff-load.c
@@ -841,6 +841,7 @@ load_image (const gchar *filename,
case COMPRESSION_LZW:
case COMPRESSION_PACKBITS:
case COMPRESSION_DEFLATE:
+ case COMPRESSION_ADOBE_DEFLATE:
case COMPRESSION_JPEG:
case COMPRESSION_CCITTFAX3:
case COMPRESSION_CCITTFAX4:
diff --git a/plug-ins/common/file-tiff-save.c b/plug-ins/common/file-tiff-save.c
index 45fdbef..ce9369a 100644
--- a/plug-ins/common/file-tiff-save.c
+++ b/plug-ins/common/file-tiff-save.c
@@ -292,7 +292,11 @@ run (const gchar *name,
{
const TiffSaveVals *pvals = gimp_parasite_data (parasite);
- tsvals.compression = pvals->compression;
+ if (pvals->compression == COMPRESSION_DEFLATE)
+ tsvals.compression = COMPRESSION_ADOBE_DEFLATE;
+ else
+ tsvals.compression = pvals->compression;
+
tsvals.save_transp_pixels = pvals->save_transp_pixels;
}
gimp_parasite_free (parasite);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]