]> _ Git - psq.git/commitdiff
colorspace SRGB
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 29 Sep 2020 16:56:29 +0000 (18:56 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 29 Sep 2020 16:56:29 +0000 (18:56 +0200)
app/PdfFile.php

index 39903811fba73ac5bc1b8b0a941fe99e29f24154..616ce344aac1513250ab20191693d7f0980f6d24 100644 (file)
@@ -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);