]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Feb 2012 19:07:45 +0000 (19:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Feb 2012 19:07:45 +0000 (19:07 +0000)
MagickCore/colorspace-private.h
coders/tiff.c

index 09b0cf4a43b932234d1dc88f54766a0825cfc261..803bc9890550960b765680a6971193f7fc244184 100644 (file)
@@ -71,7 +71,8 @@ static inline MagickBooleanType IsGrayColorspace(
 static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace)
 {
   if ((IsGrayColorspace(colorspace) != MagickFalse) ||
-      (colorspace == sRGBColorspace) || (colorspace == TransparentColorspace))
+      (colorspace == RGBColorspace) || (colorspace == sRGBColorspace) ||
+      (colorspace == TransparentColorspace))
     return(MagickTrue);
   return(MagickFalse);
 }
index a4cdd0612d36fbe71c29c16e8988c1aa0a1d70e6..d3d56d412482cd56672b4930acdae749678d00e2 100644 (file)
@@ -1004,9 +1004,9 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
     if (image->debug != MagickFalse)
       (void) LogMagickEvent(CoderEvent,GetMagickModule(),"Image depth: %.20g",
         (double) image->depth);
-    image->endian=LSBEndian;
+    image->endian=MSBEndian;
     if (endian == FILLORDER_LSB2MSB)
-      image->endian=MSBEndian;
+      image->endian=LSBEndian;
     if ((photometric == PHOTOMETRIC_MINISBLACK) ||
         (photometric == PHOTOMETRIC_MINISWHITE))
       image->colorspace=GRAYColorspace;