Skip to content

Commit 938fd4e

Browse files
authored
Use white as default background in JPG images with Imagick
1 parent 877fcb0 commit 938fd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BarcodeGeneratorJPG.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BarcodeGeneratorJPG extends BarcodeGeneratorPNG
99
protected function createImagickImageObject(int $width, int $height): Imagick
1010
{
1111
$image = new Imagick();
12-
$image->newImage($width, $height, 'none', 'JPG');
12+
$image->newImage($width, $height, 'white', 'JPG');
1313

1414
return $image;
1515
}

0 commit comments

Comments
 (0)