]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 3 Nov 2014 23:25:50 +0000 (23:25 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 3 Nov 2014 23:25:50 +0000 (23:25 +0000)
MagickCore/colorspace-private.h

index 7dfb8fda3389cc8f2bcf33e1a34ba1e6e98078a2..53bc6a6800b80d26565e29004ec96938d1ccc8f5 100644 (file)
@@ -46,9 +46,9 @@ static inline void ConvertRGBToCMYK(PixelInfo *pixel)
     }
   else
     {
-      red=DecodePixelGamma(pixel->red);
-      green=DecodePixelGamma(pixel->green);
-      blue=DecodePixelGamma(pixel->blue);
+      red=QuantumScale*DecodePixelGamma(pixel->red);
+      green=QuantumScale*DecodePixelGamma(pixel->green);
+      blue=QuantumScale*DecodePixelGamma(pixel->blue);
     }
   if ((fabs(red) < MagickEpsilon) && (fabs(green) < MagickEpsilon) &&
       (fabs(blue) < MagickEpsilon))