php-imagine / Imagine

PHP Object Oriented image manipulation library
https://imagine.readthedocs.io
Other
4.42k stars 530 forks source link

Gd\Drawer -> ellipse #838

Open jcogs-design opened 1 year ago

jcogs-design commented 1 year ago

Issue description

This method calls this code three times (line 154, 165, 172)

        if (function_exists('imageantialias')) {
            imageantialias($this->resource, true);
        }

At least two of these calls appear to be unnecessary.

Before doing a PR to remove I thought it prudent to check whether there is a good reason for the apparently redundant calls...

What version of Imagine are you using?

1.3.2

What's the PHP version you are using?

8.0.25

What's the imaging library you are using [gd/imagick/gmagick/any]?

GD2

What's the imaging library configuration

GD Version: "2.3.3" FreeType Support: true FreeType Linkage: "with freetype" GIF Read Support: true GIF Create Support: true JPEG Support: true PNG Support: true WBMP Support: true XPM Support: true XBM Support: true WebP Support: true BMP Support: true TGA Read Support: true JIS-mapped Japanese Font Support: false

Minimal PHP code to reproduce the error:

n/a