We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0683b93 commit 87e9d89Copy full SHA for 87e9d89
src/Identicon.php
@@ -211,11 +211,10 @@ public function setSize($size): void
211
*/
212
public function getEnableImageMagick(): bool
213
{
214
- // Enable ImageMagick on PHP < 7. On PHP 7 the performance increase
215
- // is not as obvious as on PHP 5. Since the ImageMagick renderer has a
216
- // lot of quirks, we don't want to use it unless really needed.
+ // Performance of using Imagick on PHP 7 and later is generally worse than using
+ // the internal renderer. Because of this, default to false.
217
if ($this->enableImageMagick === null) {
218
- return PHP_MAJOR_VERSION < 7 && extension_loaded('imagick');
+ return false;
219
}
220
221
return $this->enableImageMagick;
0 commit comments