Incorrect image rotation Firefox, Chrome & Safari |
Incorrect image rotation Firefox, Chrome & Safari |
spruce18b @hotmail.com |
May 13 2020, 03:20 PM
Post
#1
|
Group: Members Posts: 1 Joined: 10-May 20 Member No.: 27,333 |
I uploaded my php file with image names in HTML code to my Web site. They were correctly rotated when I viewed them with Firefox but some of the images (portrait and landscape) were incorrectly rotated when I viewed them with Chrome or Safari. The conflicts thus occurred across operating systems and across Web browsers.
I need to modify the PHP code to enable viewers on all platforms to see the images in the correct orientation. Could someone please assist a PHP novice? My PHP file is shown below. Thanks spruce18b <?php ########################################################################## $password = "hello"; // Modify Password to suit for access, Max 10 Char. ########################################################################## ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Title Los Angeles 2020.php</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial} TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial} --> </style> </head> <body> <?php print "<h2 align=\"center\">Title Los Angeles 2020</h2>"; // If password is valid let the user get access if (isset($_POST["password"]) && ($_POST["password"]=="$password")) { ?> <!-- START OF HIDDEN HTML - PLACE YOUR CONTENT HERE --> <html> <head> <title>Title Los Angeles 2020</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style4 { font-size: 36px; color: #0033FF; } --> </style> <style type="text/css"> <!-- .style2 { font-size: 20px; color: #0033FF; } --> </style> </head> <body> <p class="style4">Title Los Angeles 2020</p> <p class="style2"></p> <table width="600" border="0"cellpadding="0" cellspacing="0"> <tr><td> <img src=DSC999.JPG width="450 " height="600 "></td></tr><tr> <td width="600 " style="color:blue">Caption <br/><br/></td><td width="600 "allign="right"> 14 <br/><br/></td></tr> </body> </html> <!-- END OF HIDDEN HTML --> <?php } else { // Wrong password or no password entered display this message if (isset($_POST['password']) || $password == "") { print "<p align=\"center\"><font color=\"red\"><b>Incorrect Password</b><br>Please enter the correct password</font></p>";} print "<form method=\"post\"><p align=\"center\">Please enter your password for access<br>"; print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\"><input value=\"Login\" type=\"submit\"></p></form>"; } print "<br><br>"; ?> <BR> </body> </html> |
Lo-Fi Version | Time is now: 21st September 2024 - 10:45 AM |