X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3d18a04c3932f1724a67152e89619dda42a5e7cf..refs/pull/438/head:/app/Image.php diff --git a/app/Image.php b/app/Image.php index cb8ee7c59..ad23a077a 100644 --- a/app/Image.php +++ b/app/Image.php @@ -1,24 +1,21 @@ -url; - } - /** - * Get the url for this item. + * Get a thumbnail for this image. + * @param int $width + * @param int $height + * @param bool|false $keepRatio * @return string */ - public function getUrl() + public function getThumb($width, $height, $keepRatio = false) { - return public_path() . $this->url; + return Images::getThumbnail($this, $width, $height, $keepRatio); } }