From 75ed88795b4e4c8b0715868029e0944cb722e183 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 2 Feb 2019 08:01:31 -0500 Subject: [PATCH] ... --- coders/tiff.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/coders/tiff.c b/coders/tiff.c index f5d81b35c..1f4199db2 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1923,7 +1923,8 @@ RestoreMSCWarning register Quantum *magick_restrict q; - tiff_status=TIFFReadPixels(tiff,(tsample_t) i,y,(char *) tiff_pixels); + tiff_status=TIFFReadPixels(tiff,(tsample_t) i,y,(char *) + tiff_pixels); if (tiff_status == -1) break; q=GetAuthenticPixels(image,0,y,image->columns,1,exception); @@ -3877,6 +3878,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, &bits_per_sample); if (((photometric == PHOTOMETRIC_RGB) || + (photometric == PHOTOMETRIC_SEPARATED) || (photometric == PHOTOMETRIC_MINISBLACK)) && ((bits_per_sample == 8) || (bits_per_sample == 16))) predictor=PREDICTOR_HORIZONTAL; @@ -3899,6 +3901,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, case COMPRESSION_LZMA: { if (((photometric == PHOTOMETRIC_RGB) || + (photometric == PHOTOMETRIC_SEPARATED) || (photometric == PHOTOMETRIC_MINISBLACK)) && ((bits_per_sample == 8) || (bits_per_sample == 16))) predictor=PREDICTOR_HORIZONTAL; @@ -3913,6 +3916,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, &bits_per_sample); if (((photometric == PHOTOMETRIC_RGB) || + (photometric == PHOTOMETRIC_SEPARATED) || (photometric == PHOTOMETRIC_MINISBLACK)) && ((bits_per_sample == 8) || (bits_per_sample == 16))) predictor=PREDICTOR_HORIZONTAL; @@ -3924,6 +3928,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, &bits_per_sample); if (((photometric == PHOTOMETRIC_RGB) || + (photometric == PHOTOMETRIC_SEPARATED) || (photometric == PHOTOMETRIC_MINISBLACK)) && ((bits_per_sample == 8) || (bits_per_sample == 16))) predictor=PREDICTOR_HORIZONTAL; @@ -3939,6 +3944,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, &bits_per_sample); if (((photometric == PHOTOMETRIC_RGB) || + (photometric == PHOTOMETRIC_SEPARATED) || (photometric == PHOTOMETRIC_MINISBLACK)) && ((bits_per_sample == 8) || (bits_per_sample == 16))) predictor=PREDICTOR_HORIZONTAL; -- 2.40.0