38 parent::__construct($options);
40 $this->_thumb =
false;
42 $this->_side_dimension = gOpt(
'side_dimension', $options, 200);
43 $this->_apply_on_thumb = gOpt(
'apply_on_thumb', $options,
false);
60 protected function saveImage($filename, $prefix_file, $prefix_thumb, $new_width, $new_height, $thumb_width, $thumb_height){
63 $file = $this->_directory.$filename;
64 list($im_width, $im_height, $type) = getimagesize($file);
66 if($im_width >= $im_height) {
67 if($this->_apply_on_thumb) {
77 if($this->_apply_on_thumb) {
87 return parent::saveImage($filename, $prefix_file, $prefix_thumb, $new_width, $new_height, $thumb_width, $thumb_height);