Download PDF invoice Customers

This commit is contained in:
iBNu Maksum 2025-03-13 14:57:23 +07:00
parent 5f353392e3
commit 0868d61271
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
5 changed files with 71 additions and 6 deletions

View file

@ -87,7 +87,7 @@ class File
$src_img = $image_create($source_file);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nwidth, $nheight, $width, $height);
$image($dst_img, $dst_dir, $quality);
imagepng($dst_img, $dst_dir);
if ($dst_img) imagedestroy($dst_img);
if ($src_img) imagedestroy($src_img);