X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=upload.php;h=b1b33230e92a780de0d56b41e6d833f572b8d5cf;hb=eecf2afcf32b89ff927d2ee32139edf1309f528d;hp=f52f0cfe3887ce89cc3a2f294567b96e0c976bde;hpb=423f31ad0add74bbb6066d3c9f760ad0a5580cda;p=wfpl.git diff --git a/upload.php b/upload.php index f52f0cf..b1b3323 100644 --- a/upload.php +++ b/upload.php @@ -34,9 +34,9 @@ # Example: # #
-# -# -# +# +# +# #
# # ####### @@ -152,7 +152,7 @@ function generate_filename($path, $mime = 'text/plain') { # the client's name appended. Otherwise $path will be used as the filename # exactly as is, even if extensions differ between the client's name and $path. # -# where user uploads "c:\foo\Bar baz.PDF" at +# where user uploads "c:\foo\Bar baz.PDF" at # save_uploaded_file('in', 'uploaded_pdfs/'); yeilds: # "uploaded_pdfs/bar_baz.pdf" # save_uploaded_file('in', 'uploaded_pdfs/prefix.'); yeilds: @@ -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"; }