Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4121
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 28, 2021
1 parent 0aab306 commit 6ba45df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick/attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,12 +1576,12 @@ 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;
quantize_info->dither_method=FloydSteinbergDitherMethod;
status=QuantizeImage(quantize_info,image);
quantize_info=DestroyQuantizeInfo(quantize_info);
status=MinMaxStretchImage(image,0.0,0.0,1.0);
image->matte=MagickFalse;
break;
}
Expand Down

0 comments on commit 6ba45df

Please sign in to comment.