]> BookStack Code Mirror - bookstack/blob - app/Uploads/Image.php
de_informal - remove comments from unused lines
[bookstack] / app / Uploads / Image.php
1 <?php namespace BookStack\Uploads;
2
3 use BookStack\Ownable;
4 use Images;
5
6 class Image extends Ownable
7 {
8
9     protected $fillable = ['name'];
10
11     /**
12      * Get a thumbnail for this image.
13      * @param  int $width
14      * @param  int $height
15      * @param bool|false $keepRatio
16      * @return string
17      * @throws \Exception
18      */
19     public function getThumb($width, $height, $keepRatio = false)
20     {
21         return Images::getThumbnail($this, $width, $height, $keepRatio);
22     }
23 }