aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-31 22:43:41 +0000
committerplegall <plg@piwigo.org>2011-01-31 22:43:41 +0000
commita27421cca100aca6566e3e229955dd326fad98a5 (patch)
tree37cd27bc18140bdc528bfefc5788661492b16ab4 /admin
parentaae2301da94428c07d945fb34e29eceb882c19eb (diff)
no need to check the availability of a GD function in the ImageMagick resize algorithm
git-svn-id: http://piwigo.org/svn/trunk@9022 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-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();