Exemplo n.º 1
0
 public static function showFromModel($media, $destWidth = 64, $destHeight = 64, $ratio = RatioType::SMART, $compression = 10, $canZoom = false)
 {
     if (!isset($media)) {
         $media = new \Rebond\Core\Media\Model();
     }
     return self::show(\Rebond\Config::getPath('media'), \Rebond\Config::getPath('siteUrl') . \Rebond\Config::getPath('mediaFolder'), $media->getPath(), $media->getUpload(), $destWidth, $destHeight, $ratio, $compression, $canZoom);
 }