Home > other >  imageantialias() doesn't seem to do anything
imageantialias() doesn't seem to do anything

Time:02-10

I create an image with:

$image   = @imagecreatetruecolor(320, 45) or die("Cannot Initialize new GD image stream.");
imageantialias($image, true);
imagefill($image, 0, 0, imagecolorallocate($image, 255, 255, 255);

Later, I add some text and on top of that, a shape:

imagearc($image, $x   5, $y - 7, $size, $size, 0, 360, $color);

But the the circle is still very jaggy:

jaggy circle

I'm running php 8 with gd installed. I'm getting no errors.

CodePudding user response:

  •  Tags:  
  • Related