Skip to content

Commit

Permalink
Set transpartent background to white
Browse files Browse the repository at this point in the history
Set transparent background to white..
*notTestet
  • Loading branch information
BenjaminRehn authored and freekmurze committed Sep 8, 2016
1 parent ceafe18 commit dca165e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public function getImageData($pathToImage)
$imagick->setResolution($this->resolution, $this->resolution);

$imagick->readImage(sprintf('%s[%s]', $this->pdfFile, $this->page - 1));

$imagick->mergeImageLayers(\Imagick::LAYERMETHOD_FLATTEN);

$imagick->setFormat($this->determineOutputFormat($pathToImage));

Expand Down

0 comments on commit dca165e

Please sign in to comment.