*/
image->taint=MagickTrue;
image->type=UndefinedType;
- if (1 && image->colorspace == GRAYColorspace)
- image->colorspace=RGBColorspace;
if (ValidatePixelCacheMorphology(image) == MagickFalse)
status=OpenPixelCache(image,IOMode,exception);
}
packet_size=(size_t) (quantum_info->depth/8);
if (image->storage_class == DirectClass)
packet_size=(size_t) (3*quantum_info->depth/8);
+ if (image->colorspace == GRAYColorspace)
+ packet_size=quantum_info->depth/8;
if (image->matte != MagickFalse)
packet_size+=quantum_info->depth/8;
if (image->colorspace == CMYKColorspace)
packet_size=(size_t) (quantum_info->depth/8);
if (image->storage_class == DirectClass)
packet_size=(size_t) (3*quantum_info->depth/8);
+ if ((image->colorspace != sRGBColorspace) &&
+ (IsImageGray(image,exception) != MagickFalse))
+ packet_size=(size_t) (quantum_info->depth/8);
if (image->matte != MagickFalse)
packet_size+=quantum_info->depth/8;
if (image->colorspace == CMYKColorspace)
}
if (image->rendering_intent != UndefinedIntent)
{
- (void) FormatLocaleString(buffer,MaxTextExtent,
- "rendering-intent=%s\n",
- CommandOptionToMnemonic(MagickIntentOptions,image->rendering_intent));
+ (void) FormatLocaleString(buffer,MaxTextExtent,"rendering-intent=%s\n",
+ CommandOptionToMnemonic(MagickIntentOptions,image->rendering_intent));
(void) WriteBlobString(image,buffer);
}
if (image->gamma != 0.0)