aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions_upload.inc.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index c99c358f6..c31047239 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -546,11 +546,7 @@ function pwg_image_resize_im($source_filepath, $destination_filepath, $max_width
$image = new Imagick($source_filepath);
- $rotation = null;
- if (function_exists('imagerotate'))
- {
- $rotation = get_rotation_angle($source_filepath);
- }
+ $rotation = get_rotation_angle($source_filepath);
// width/height
$source_width = $image->getImageWidth();