MagickFalse ? PHOTOMETRIC_MINISWHITE :
PHOTOMETRIC_MINISBLACK);
(void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,1);
- if ((image_info->depth == 0) &&
- (image->alpha_trait == UndefinedPixelTrait) &&
- (SetImageMonochrome(image,exception) != MagickFalse))
- {
- status=SetQuantumDepth(image,quantum_info,1);
- if (status == MagickFalse)
- ThrowWriterException(ResourceLimitError,
- "MemoryAllocationFailed");
- }
+ if ((image->depth == 1) &&
+ (image->alpha_trait == UndefinedPixelTrait))
+ SetImageMonochrome(image,exception);
}
else
if (image->storage_class == PseudoClass)