]> BookStack Code Mirror - bookstack/blob - app/Image.php
Fixes a corner case with exclamation in the ID.
[bookstack] / app / Image.php
1 <?php namespace BookStack;
2
3 use Images;
4
5 class Image extends Ownable
6 {
7
8     protected $fillable = ['name'];
9
10     /**
11      * Get a thumbnail for this image.
12      * @param  int $width
13      * @param  int $height
14      * @param bool|false $keepRatio
15      * @return string
16      * @throws \Exception
17      */
18     public function getThumb($width, $height, $keepRatio = false)
19     {
20         return Images::getThumbnail($this, $width, $height, $keepRatio);
21     }
22
23 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.