From a27421cca100aca6566e3e229955dd326fad98a5 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 31 Jan 2011 22:43:41 +0000 Subject: 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 --- admin/include/functions_upload.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'admin') 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(); -- cgit v1.2.3