From 1f9a84bfc6204c9201dd7fb3a957dc1d5b4fa43c Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Tue, 24 Aug 2021 03:28:46 +0200 Subject: [PATCH] Added +1 for padding --- src/gdImg/gd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdImg/gd.php b/src/gdImg/gd.php index 15c29bb..e3623b3 100644 --- a/src/gdImg/gd.php +++ b/src/gdImg/gd.php @@ -104,7 +104,7 @@ if($hw>600){$hw=600;} imagecopyresized($jpg_image, $photo, 10, 100, 0, 0, 500, $hw, $width, $height); list($wc, $hc) = getimagesize("gdImg/cid.png"); -$ho=$hc+floor(count($fln)/6)*100; +$ho=$hc+floor((count($fln)+1)/6)*100; $image_out = imagecreatetruecolor($wc,$ho); $bg_color = ImageColorAllocate ($image_out, 0, 0, 0); imagefill($image_out,0,0,$bg_color);