Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cafb400
)
convert_uploaded_image: activate exif rotation
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 3 Jun 2011 00:49:00 +0000
(20:49 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 3 Jun 2011 00:53:02 +0000
(20:53 -0400)
upload.php
patch
|
blob
|
history
diff --git
a/upload.php
b/upload.php
index
5d5c8a0
..
b1b3323
100644
(file)
--- 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";
}