Johnny2 Posted December 15, 2013 Report Share Posted December 15, 2013 I'm using the following code to save a file from a form: <?php $item_ID=53; // ADDS IMAGES TO IMAGES FOLDER $image_name_1 = "$item_ID"."_img1".".jpg"; //Saves newly-named image file move_uploaded_file($_FILES['img1']['tmp_name'],"../images/$image_name_1"); ?> The code works great. However; some files become turned on their side when viewed on the website. I'm taking a shot in the dark and thinking it has something to do with the way Windows 8 saves the file. Because if I take the same file and re-save it in photoshop, then upload that file, it is not turned on it's side. Anyway, I cannot alter the code of windows, so is there some php code that I can use to make sure the image isn't turned on it's side when uploaded via my script? Thanks. Quote Link to comment Share on other sites More sharing options...
administrator Posted December 16, 2013 Report Share Posted December 16, 2013 Hmmm ... you can look into the php GD libraries: http://www.php.net/manual/en/book.image.php You should be able to figure out something there. Stef Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.