From d52b984fa6b2dd894bc661874e67708f9f19d37c Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 1 Nov 2012 11:18:10 +0000 Subject: [PATCH] --- coders/tiff.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 3954ad3a6..fddbd563d 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1139,12 +1139,6 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, sampling_factor,exception); (void) LogMagickEvent(CoderEvent,GetMagickModule(), "Sampling Factors: %s",sampling_factor); - if ((samples_per_pixel > 1) && (photometric == PHOTOMETRIC_YCBCR)) - { - (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE, - JPEGCOLORMODE_RGB); - photometric=PHOTOMETRIC_RGB; - } } #endif break; @@ -1756,14 +1750,6 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, } if (image->storage_class == PseudoClass) image->depth=GetImageDepth(image,exception); - if ((photometric == PHOTOMETRIC_LOGL) || - (photometric == PHOTOMETRIC_MINISBLACK) || - (photometric == PHOTOMETRIC_MINISWHITE)) - { - image->type=GrayscaleType; - if (bits_per_sample == 1) - image->type=BilevelType; - } /* Proceed to next image. */ -- 2.50.1