]> BookStack Code Mirror - bookstack/blob - app/Image.php
Update all.blade.php
[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      */
17     public function getThumb($width, $height, $keepRatio = false)
18     {
19         return Images::getThumbnail($this, $width, $height, $keepRatio);
20     }
21 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.