From 8b61f806d275b2c97955577bbf3cc42f1fdf655a Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Tue, 29 Sep 2020 18:56:29 +0200 Subject: [PATCH] colorspace SRGB --- app/PdfFile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PdfFile.php b/app/PdfFile.php index 3990381..616ce34 100644 --- a/app/PdfFile.php +++ b/app/PdfFile.php @@ -441,7 +441,8 @@ class PdfFile extends TwillModel implements Sortable Storage::disk('public')->makeDirectory('covers'); $pdf = new PdfToImage\Pdf($this->absolutePdfPath); - $pdf->setResolution(72) + $pdf->setResolution(100) + ->setColorspace(\Imagick::COLORSPACE_SRGB) ->saveImage($tmp); $image =\Image::make($tmp); -- 2.39.5