Merge pull request #1 from gaincoder/gaincoder-patch-1

fix absolute symlink for svg
This commit is contained in:
Tim Moritz 2024-12-27 09:13:43 +01:00 committed by GitHub
commit 1d96daa405
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -933,7 +933,7 @@ function transformImage($file, $imageDir, $thumbnailDir = false)
// Generate Thumbnail
if (!empty($thumbnailDir)) {
if (($fileExtension == 'svg')) {
Filesystem::symlink($image, $thumbnailDir . $nextFilename);
Filesystem::symlink('..'.DS.$nextFilename, $thumbnailDir . $nextFilename);
} else {
$Image = new Image();
$Image->setImage($image, $site->thumbnailWidth(), $site->thumbnailHeight(), 'crop');