mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 21:46:22 +05:30
Update dispatch.php
This commit is contained in:
parent
4299c6916f
commit
0d7e09f748
1 changed files with 3 additions and 0 deletions
|
|
@ -657,6 +657,9 @@ function create_thumb($src, $desired_width = null, $desired_height = null) {
|
|||
|
||||
/* read the source image */
|
||||
$source_image = imagecreatefromstring(file_get_contents($src));
|
||||
if ($source_image === false) {
|
||||
return $src;
|
||||
}
|
||||
$width = imagesx($source_image);
|
||||
$height = imagesy($source_image);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue