From 6f0496dc8fa0c71b6606456cf4bc4b65e8140ec6 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 2 Jun 2011 20:49:00 -0400 Subject: [PATCH] convert_uploaded_image: activate exif rotation --- upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.php b/upload.php index 5d5c8a0..b1b3323 100644 --- a/upload.php +++ b/upload.php @@ -392,7 +392,7 @@ function convert_uploaded_image($key, $path, $image_width = 0, $image_height = 0 $filename = $path; } - $convert_params = '-colorspace RGB'; + $convert_params = '-colorspace RGB -auto-orient'; if($image_width > 0 && $image_height > 0) { $convert_params .= " -geometry ${image_width}x$image_height"; } -- 1.7.10.4