//
// }
- 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);
}
$orientation = $imagick->getImageOrientation();
-
+ print_R($orientation);exit;
switch($orientation) {
case Imagick::ORIENTATION_BOTTOMRIGHT:
$imagick->rotateimage(new ImagickPixel('#00000000'), 180); // rotate 180 degrees