From 949bf5b16e3de8d22a3e1da10784ad4cca5e6805 Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 8 May 2010 02:47:03 +0000 Subject: [PATCH] --- coders/tiff.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 18852016f..02dcafe5f 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2368,8 +2368,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, const char *mode, - *option, - *value; + *option; CompressionType compression; @@ -2780,6 +2779,9 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RAW); if (image->colorspace == RGBColorspace) { + const char + *value; + (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RGB); sampling_factor=(const char *) NULL; value=GetImageProperty(image,"jpeg:sampling-factor"); -- 2.50.1