]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 27 Feb 2013 21:01:50 +0000 (21:01 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 27 Feb 2013 21:01:50 +0000 (21:01 +0000)
MagickCore/profile.c
coders/tiff.c

index 839d57503b40c99fca47e9f635ef341c7307f4a7..1c81f619bb1df8d1b2884205c08b96194f483a05 100644 (file)
@@ -949,20 +949,20 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name,
             {
               case cmsSigRgbData:
               {
-                image->type=image->alpha_trait != BlendPixelTrait ? TrueColorType :
-                  TrueColorMatteType;
+                image->type=image->alpha_trait != BlendPixelTrait ?
+                  TrueColorType : TrueColorMatteType;
                 break;
               }
               case cmsSigCmykData:
               {
-                image->type=image->alpha_trait != BlendPixelTrait ? ColorSeparationType :
-                  ColorSeparationMatteType;
+                image->type=image->alpha_trait != BlendPixelTrait ?
+                  ColorSeparationType : ColorSeparationMatteType;
                 break;
               }
               case cmsSigGrayData:
               {
-                image->type=image->alpha_trait != BlendPixelTrait ? GrayscaleType :
-                  GrayscaleMatteType;
+                image->type=image->alpha_trait != BlendPixelTrait ?
+                  GrayscaleType : GrayscaleMatteType;
                 break;
               }
               default:
index 0b57bc3819b0a7fbeeacbbd5e936834c1d799e90..c77f9f83b39fcff80d8fc66db2faab8a8611ed6e 100644 (file)
@@ -1072,6 +1072,11 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
       SetImageColorspace(image,CMYKColorspace,exception);
     if (photometric == PHOTOMETRIC_CIELAB)
       SetImageColorspace(image,LabColorspace,exception);
+    TIFFGetProfiles(tiff,image,exception);
+    TIFFGetProperties(tiff,image,exception);
+    option=GetImageOption(image_info,"tiff:exif-properties");
+    if (IfMagickTrue(IsStringNotFalse(option))) /* enabled by default */
+      TIFFGetEXIFProperties(tiff,image,exception);
     (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLESPERPIXEL,
       &samples_per_pixel);
     (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_RESOLUTIONUNIT,&units);
@@ -1152,11 +1157,6 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
       case COMPRESSION_ADOBE_DEFLATE: image->compression=ZipCompression; break;
       default: image->compression=RLECompression; break;
     }
-    TIFFGetProfiles(tiff,image,exception);
-    TIFFGetProperties(tiff,image,exception);
-    option=GetImageOption(image_info,"tiff:exif-properties");
-    if (IfMagickTrue(IsStringNotFalse(option))) /* enabled by default */
-      TIFFGetEXIFProperties(tiff,image,exception);
     /*
       Allocate memory for the image and pixel buffer.
     */