Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.88k stars 1.5k forks source link

The gd drawCircle with border not smooth than the imagic. #1340

Closed hetao29 closed 5 months ago

hetao29 commented 5 months ago

Describe the bug The gd drawCircle with border not smooth than the imagic.

Code Example

$manger_gd = Intervention\Image\ImageManager::imagick();
$manger_imagic = Intervention\Image\ImageManager::imagick();
...

$manger_gd->drawCircle(581,530,  function (Intervention\Image\Geometry\Factories\CircleFactory $draw) use (){
    $draw->radius(21);
    $draw->background('rgba(255, 255, 255, 1)');
    $draw->border('rgba(25, 255, 155, 1)',2);
});

$manger_imagic->drawCircle(581,530,  function (Intervention\Image\Geometry\Factories\CircleFactory $draw) use (){
    $draw->radius(21);
    $draw->background('rgba(255, 255, 255, 1)');
    $draw->border('rgba(25, 255, 155, 1)',2);
});

Expected behavior The same smooth.

olivervogel commented 5 months ago

Intervention Image is a unified API for GD and Imagick. The main goal is to make the results of the API independent of the driver used and thus ensure interchangeability. However, this is not always 100% possible. Due to the special features and limitations of the respective implementation (in this case GD), differences must be taken into account here.

hetao29 commented 5 months ago

Thanks very much, I see .