Skip to content

Commit 2e88452

Browse files
committed
set JPG default to white background as per docs
fixes: #216
1 parent a1d1e68 commit 2e88452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Renderers/JpgRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ protected function createImagickImageObject(int $width, int $height): Imagick
1414
// Colored background
1515
$backgroundColor = new ImagickPixel('rgb(' . implode(',', $this->backgroundColor) . ')');
1616
} else {
17-
// Use transparent background
18-
$backgroundColor = new ImagickPixel('none');
17+
// Use white background
18+
$backgroundColor = new ImagickPixel('rgb(255,255,255)');
1919
}
2020
$image->newImage($width, $height, $backgroundColor, 'JPG');
2121

0 commit comments

Comments
 (0)