From 459f6eb529068643b2e189ab06ff9da68fccac98 Mon Sep 17 00:00:00 2001 From: iznomip <155090186+iznomip@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:51:58 +0100 Subject: [PATCH] fix(tcpdf): implicit conversion from float --- htdocs/includes/tecnickcom/tcpdf/tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php index 5fc00e57f75..70af2dc0f3e 100644 --- a/htdocs/includes/tecnickcom/tcpdf/tcpdf.php +++ b/htdocs/includes/tecnickcom/tcpdf/tcpdf.php @@ -7460,7 +7460,7 @@ class TCPDF $color = imagecolorat($img, $xpx, $ypx); // get and correct gamma color $alpha = $this->getGDgamma($img, $color); - imagesetpixel($imgalpha, $xpx, $ypx, $alpha); + imagesetpixel($imgalpha, $xpx, $ypx, (int)$alpha); } } imagepng($imgalpha, $tempfile_alpha);