Added +1 for padding
This commit is contained in:
parent
fa7bdea30a
commit
1f9a84bfc6
|
@ -104,7 +104,7 @@ if($hw>600){$hw=600;}
|
||||||
imagecopyresized($jpg_image, $photo, 10, 100, 0, 0, 500, $hw, $width, $height);
|
imagecopyresized($jpg_image, $photo, 10, 100, 0, 0, 500, $hw, $width, $height);
|
||||||
|
|
||||||
list($wc, $hc) = getimagesize("gdImg/cid.png");
|
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);
|
$image_out = imagecreatetruecolor($wc,$ho);
|
||||||
$bg_color = ImageColorAllocate ($image_out, 0, 0, 0);
|
$bg_color = ImageColorAllocate ($image_out, 0, 0, 0);
|
||||||
imagefill($image_out,0,0,$bg_color);
|
imagefill($image_out,0,0,$bg_color);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user