note 129401 added to imagick.setoption
| From: | dodginessatyahoodotcom | Date: | Mon, 15 Apr 2024 14:50:14 +0000 |
| Subject: | note 129401 added to imagick.setoption | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221285@lists.php.net to get a copy of this message | ||
It does not appear to be possible to disable anti-aliasing using the setOption() method as might be
expected, and calling the setOption() method like this does not do anything:
$imagick->setOption('antialias', FALSE);
As discussed at https://github.com/Imagick/imagick/issues/83
the correct way to do this appears to be to use the setAntiAlias() method, which is not currently
documented in the PHP manual. As an example, to disable anti-aliasing for an image you can do this:
$imagick->setAntiAlias(FALSE);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.131 (proxied: 146.200.143.114)
----
Manual Page -- https://php.net/manual/en/imagick.setoption.php
Edit -- https://main.php.net/note/edit/129401
Del: integrated -- https://main.php.net/note/delete/129401/integrated
Del: useless -- https://main.php.net/note/delete/129401/useless
Del: bad code -- https://main.php.net/note/delete/129401/bad+code
Del: spam -- https://main.php.net/note/delete/129401/spam
Del: non-english -- https://main.php.net/note/delete/129401/non-english
Del: in docs -- https://main.php.net/note/delete/129401/in+docs
Del: other reasons-- https://main.php.net/note/delete/129401
Reject -- https://main.php.net/note/reject/129401
Search -- https://main.php.net/manage/user-notes.php