JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
convert_uploaded_image: activate exif rotation
[wfpl.git] / upload.php
index 5d5c8a0..b1b3323 100644 (file)
@@ -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";
        }