Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4059
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 12, 2021
1 parent 63037e7 commit 37b4985
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magick/attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,11 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type)
status=TransformImageColorspace(image,GRAYColorspace);
(void) NormalizeImage(image);
status=BilevelImage(image,QuantumRange/2.0);
quantize_info=AcquireQuantizeInfo(image_info);
quantize_info->number_colors=2;
quantize_info->colorspace=GRAYColorspace;
status=QuantizeImage(quantize_info,image);
quantize_info=DestroyQuantizeInfo(quantize_info);
image->matte=MagickFalse;
break;
}
Expand Down

0 comments on commit 37b4985

Please sign in to comment.