Example #1
0
 public static function thumb($url, $alt = null, $max_w = 200, $max_h = 200, $classes = null, $id = null)
 {
     list($w, $h) = getimagesize($url);
     list($new_w, $new_h) = Ftp::resizeImage($w, $h, $max_w, $max_h);
     return self::image($url, $alt, $classes, $id, $new_w, $new_h);
 }