We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155613f commit b01dcfeCopy full SHA for b01dcfe
src/BarcodeGeneratorPNG.php
@@ -14,10 +14,10 @@ class BarcodeGeneratorPNG extends BarcodeGenerator
14
public function __construct()
15
{
16
// Auto switch between GD and Imagick based on what is installed
17
- if (function_exists('imagecreate')) {
18
- $this->useImagick = false;
19
- } elseif (extension_loaded('imagick')) {
+ if (extension_loaded('imagick')) {
20
$this->useImagick = true;
+ } elseif (function_exists('imagecreate')) {
+ $this->useImagick = false;
21
} else {
22
throw new BarcodeException('Neither gd-lib or imagick are installed!');
23
}
0 commit comments