Server : Apache System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 User : apache ( 48) PHP Version : 8.0.28 Disable Function : NONE Directory : /var/www/html/mmishra/mybp1/ |
You need to resize the image manually with an external program, or you could use a dynamic image with an image.php and change the background to:
url(image.php?src=image.png&width=30&h.
source of the image.php
<?php
$image = imagecreatefrompng($_GET['src']);
list($width, $height) = getimagesize($filename);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $_GET['width'], $_GET['height'], $width, $height);
header("Content-type: image/png");
imagepng($image);
?>