From 314dbee7b3905ce2b45b0654c83d40866ae4eff5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Feb 2025 09:45:30 +0100 Subject: [PATCH] wip #7340 --- src/PDFTools.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PDFTools.php b/src/PDFTools.php index 9c769ab..17666f1 100644 --- a/src/PDFTools.php +++ b/src/PDFTools.php @@ -366,7 +366,7 @@ class PDFTools if ($method === 'GS') { self::makeShotGS($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, $width, $height, $format); } elseif ($method === 'PNM') { - self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, $width, $height, $format); + self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, false, $width, $height, $format); } // Test the result by checking all files if (!file_exists($out)) { @@ -375,7 +375,7 @@ class PDFTools // If error, we try to make thumbs with other method if ($error) { if ($method === 'GS') { - self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, $width, $height, $format); + self::makeShotPNM($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, true, false, $width, $height, $format); } elseif ($method === 'PNM') { self::makeShotGS($in, $out, $page, $prefix, $resolution, $quality, $antialiasing, $width, $height, $format); } -- 2.39.5