// }
if(!empty($scaleWidth) || !empty($scaleHeight)){
- $data = $this->scale($scaleWidth, $scaleHeight);
+ $data = $this->scale(false, $scaleWidth, $scaleHeight);
}
if($rotate){
$imagick = new Imagick();
$imagick->readImageBlob($imageBlob);
}
+
+ $imagick->resizeimage($width, $height, Imagick::FILTER_LANCZOS, true, true);
+
+ return $imagick->getImageBlob();
+
}
}