fix absolute symlink for svg

This commit is contained in:
Tim Moritz 2024-12-27 09:13:02 +01:00 committed by GitHub
parent 3c02c86498
commit a39c8e25f4
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');