mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Re-structured the app code to be feature based rather than code type based
This commit is contained in:
23
app/Uploads/Image.php
Normal file
23
app/Uploads/Image.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php namespace BookStack\Uploads;
|
||||
|
||||
use BookStack\Ownable;
|
||||
use Images;
|
||||
|
||||
class Image extends Ownable
|
||||
{
|
||||
|
||||
protected $fillable = ['name'];
|
||||
|
||||
/**
|
||||
* Get a thumbnail for this image.
|
||||
* @param int $width
|
||||
* @param int $height
|
||||
* @param bool|false $keepRatio
|
||||
* @return string
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getThumb($width, $height, $keepRatio = false)
|
||||
{
|
||||
return Images::getThumbnail($this, $width, $height, $keepRatio);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user