mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
Update dispatch.php
This commit is contained in:
parent
efa0b07e91
commit
72da49f374
1 changed files with 2 additions and 0 deletions
|
|
@ -675,6 +675,8 @@ function create_thumb($src, $desired_width = null, $desired_height = null) {
|
|||
|
||||
/* create a new, "virtual" image */
|
||||
$virtual_image = imagecreatetruecolor($desired_width, $desired_height);
|
||||
imageAlphaBlending($virtual_image, false);
|
||||
imageSaveAlpha($virtual_image, true);
|
||||
|
||||
/* copy source image at a resized size */
|
||||
imagecopyresampled($virtual_image, $source_image, 0, 0, $x, 0, $desired_width, $desired_height, $width, $height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue