spires Posted July 15, 2006 Share Posted July 15, 2006 Hi, Does any know why my images have distorted?[url]http://www.spirestest.com/nicky/gallery/select_edit.php[\url]I have uploaded them into a folder on the server. I have also (on upload) resized the images to 150 height.when i display the thumbnails they come out distorted.Is there any way of fixing this?[code]<?phpinclude('db.php');echo $id;$arrErrors = array();if (!empty($_POST['submit'])) { if ($_POST['description']=='') $arrErrors['description'] = 'Description.'; if ($_POST['name']=='') $arrErrors['name'] = 'Name.'; if (count($arrErrors) == 0) { if (isset($_GET['id'])) { $name = $_GET['name']; $description=$_GET['description']; $id=$_GET['id']; } $result = mysql_query("UPDATE ***** SET description = '$description', name = '$name' WHERE id = '$id' LIMIT 1") or die(mysql_error()); if ($result) { $link_home = '<div class="error">Your details have been updated.<br><a href="select_edit.php" class="link">Return to edit list</a>.'; } else { $UNtaken = '<div class="error">Sorry, Your details have not been updated.'; } } else { if (empty($title) || empty($art)) { $strError = '<div class="error">error'; foreach ($arrErrors as $error) { $strError .= "<li>$error</li>"; } $strError .= '</div>'; } }} ?><html><head><title>New News</title><link href="../css/nicky.css" rel="stylesheet" type="text/css"></head><body><center><a href="select_edit.php" class="link">back</a><table width="250px" bgcolor="#EEEEEE" class="TLRB_border"><tr><td> <form name="form1" method="post" action="<?php echo $PHP_SELF; ?>"> <?php echo "<INPUT type='hidden' name='id' value='".$_POST['id']."'>"; ?> <table width="190px" align="center" bgcolor="#FFFFFF"> <tr> <td colspan="2">Edit News</td> </tr> <tr> <td class="loginBox_text">Name:</td> <td> <input name="name" Type="text" id="name" size="15" value="<?php echo $_POST['name']?>"> </td> </tr> <tr> <td class="loginBox_text">Description:</td> <td> <textarea name="description" cols="30" wrap="PHYSICAL" id="description" value="<?php echo $_POST['description']?>"></textarea> </td> </tr> <td colspan="2" align="right"> <input type="submit" name="submit" value="Submit"> </td> </table> </form> </td><tr><td><center><?php echo $strError; ?><?php echo $UNtaken; ?><?php echo $link_home; ?><?php echo $hitch; ?><?php echo $final; ?></center></td></tr></tr></table></center></body></html>[/code]Thanks for your help. :D Quote Link to comment https://forums.phpfreaks.com/topic/14679-distorting-images/ Share on other sites More sharing options...
pixy Posted July 15, 2006 Share Posted July 15, 2006 They look fine to me... Quote Link to comment https://forums.phpfreaks.com/topic/14679-distorting-images/#findComment-58518 Share on other sites More sharing options...
spires Posted July 15, 2006 Author Share Posted July 15, 2006 Really?On my screen they have come out pixellated. when you click them to enlarge they come out ok.Maybe a monitor issue Quote Link to comment https://forums.phpfreaks.com/topic/14679-distorting-images/#findComment-58521 Share on other sites More sharing options...
pixy Posted July 15, 2006 Share Posted July 15, 2006 Yea, they look like they're just resized versions of the bigger pictures. Quote Link to comment https://forums.phpfreaks.com/topic/14679-distorting-images/#findComment-58523 Share on other sites More sharing options...
spires Posted July 15, 2006 Author Share Posted July 15, 2006 OK, Cool Quote Link to comment https://forums.phpfreaks.com/topic/14679-distorting-images/#findComment-58524 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.