예제 #1
0
파일: Imagick.php 프로젝트: anp135/altocms
 public function resize($width = 0, $height = 0, $fit = true)
 {
     if ($this->resize_scale) {
         return parent::resize($width, $height, $fit);
     } else {
         if ($this->multiframe()) {
             $this->image = $this->image->coalesceImages();
             foreach ($this->image as $frame) {
                 $frame->resizeImage($width, $height, $this->resize_filter, 1, $fit);
                 $frame->setImagePage($width, $height, 0, 0);
             }
         } else {
             $this->image->resizeImage($width, $height, $this->resize_filter, 1, $fit);
         }
         $this->update_size($width, $height);
     }
     return $this;
 }