diff --git a/Image.php b/Image.php index 33bfd26..28bf08f 100644 --- a/Image.php +++ b/Image.php @@ -91,4 +91,11 @@ abstract class Image extends File return parent::getImageVariant($size, $force_create, $important_create); } + + public function getThumb($width = 0, $height = 0, $crop_method = null) { + if ( $width == 0 && $height == 0 ) { + return \Majestic\Config::get('static_url') . $this->getWebName(); + } + return \Majestic\Config::get('static_url') . $this->getVariant($width . 'x' . $height)->getWebName(); + } } \ No newline at end of file