mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Update dispatch.php
Keep the thumbnail original filename.
This commit is contained in:
parent
6684d027e8
commit
6ceee82032
1 changed files with 2 additions and 1 deletions
|
|
@ -664,7 +664,8 @@ function create_thumb($src, $desired_width = null, $desired_height = null) {
|
|||
$h = null;
|
||||
}
|
||||
|
||||
$fileName = pathinfo($src, PATHINFO_FILENAME);
|
||||
$path = parse_url($src, PHP_URL_PATH);
|
||||
$fileName = rawurldecode(basename($path));
|
||||
$thumbFile = $dir . '/' . $fileName . '-' . $desired_width . $h .'.webp';
|
||||
|
||||
if (file_exists($thumbFile)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue