diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2014-03-17 13:07:37 -0700 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2014-03-19 08:35:39 +0000 |
commit | 7458c4b5eed25b49ba15dcb37b6dd2ec1d6f0089 (patch) | |
tree | b213c077e4b470cbe9a3290301ac4bbe0ae85556 | |
parent | c23cde8b44a751a787636a7747b42b2da7911922 (diff) | |
download | ghostpdl-7458c4b5eed25b49ba15dcb37b6dd2ec1d6f0089.tar.gz |
Fix to turn of BPC when we are using the Gray_to_K ICC profile.
This appears to be a bug in lcms. Will follow up with Marti. Also fix for tiff64nc. In the test
tiff_compression_allowed we were missing the test for the 16 bit case. Surprisingly this commit
results in progressions in the 8 bit device outputs too when we have a gray source and going
to a CMYK device.
-rw-r--r-- | gs/base/gsicc_cache.c | 2 | ||||
-rw-r--r-- | gs/devices/gdevtifs.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gs/base/gsicc_cache.c b/gs/base/gsicc_cache.c index 90df07cbb..d1eb75e62 100644 --- a/gs/base/gsicc_cache.c +++ b/gs/base/gsicc_cache.c @@ -946,6 +946,8 @@ gsicc_get_link_profile(const gs_imager_state *pis, gx_device *dev, icc_manager->smask_profiles->smask_gray->profile_handle; cms_output_profile = icc_manager->graytok_profile->profile_handle; + /* Turn off bp compensation in this case as there is a bug in lcms */ + rendering_params->black_point_comp = false; cms_flags = 0; /* Turn off any flag setting */ } /* Get the link with the proof and or device link profile */ diff --git a/gs/devices/gdevtifs.c b/gs/devices/gdevtifs.c index e20feed24..11055afa0 100644 --- a/gs/devices/gdevtifs.c +++ b/gs/devices/gdevtifs.c @@ -515,7 +515,7 @@ int tiff_compression_allowed(uint16 compression, byte depth) compression == COMPRESSION_CCITTFAX4 || compression == COMPRESSION_LZW || compression == COMPRESSION_PACKBITS)) - || (depth == 8 && (compression == COMPRESSION_NONE || + || ((depth == 8 || depth == 16) && (compression == COMPRESSION_NONE || compression == COMPRESSION_LZW || compression == COMPRESSION_PACKBITS))); |