//
// }
-// if(!empty($scaleWidth) || !empty($scaleHeight)){
-// $data = $this->scale($scaleWidth, $scaleHeight);
-// }
+ if(!empty($scaleWidth) || !empty($scaleHeight)){
+ $data = $this->scale($scaleWidth, $scaleHeight);
+ }
if($rotate){
- $data = $this->rotate();
$data = $this->rotate($data);
}
return $imagick->getImageBlob();
}
- function scale($width, $height)
+ function scale($width, $height, $imageBlob = false)
{
}