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