]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/Image.php
Customization: Added parent tag classes
[bookstack] / app / Uploads / Image.php
index 5e197e7507457323932b88e50a964bcf0d6949a4..0a267a64465ff623ae92c001cd68caf4666f38ef 100644 (file)
@@ -52,7 +52,7 @@ class Image extends Model
      */
     public function getThumb(?int $width, ?int $height, bool $keepRatio = false): ?string
     {
-        return app()->make(ImageService::class)->getThumbnail($this, $width, $height, $keepRatio, false, true);
+        return app()->make(ImageResizer::class)->resizeToThumbnailUrl($this, $width, $height, $keepRatio, false);
     }
 
     /**