Skip to content

Commit fbb1de7

Browse files
authored
Merge pull request #220 from twinklebob/main
set JPG default to white background as per docs
2 parents a1d1e68 + 2e88452 commit fbb1de7

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)