diff --git a/src/Kollarovic/Thumbnail/AbstractGenerator.php b/src/Kollarovic/Thumbnail/AbstractGenerator.php index af2a888..fb6d1b6 100644 --- a/src/Kollarovic/Thumbnail/AbstractGenerator.php +++ b/src/Kollarovic/Thumbnail/AbstractGenerator.php @@ -60,7 +60,10 @@ public function thumbnail(string $src, int|string|null $width, int|string|null $ $this->crop = $crop; if (!is_file($this->src)) { - return $this->createPlaceholderPath(); + $this->src = $this->wwwDir . '/' . $this->placeholder; + if (!is_file($this->src)) { + return $this->createPlaceholderPath(); + } } $thumbRelPath = $this->createThumbPath();