beboo002 Posted April 18, 2008 Share Posted April 18, 2008 Hello all When I resize the image the quality of image is not good. how can i get clear image. Thanks Link to comment https://forums.phpfreaks.com/topic/101662-images-problem/ Share on other sites More sharing options...
AndyB Posted April 18, 2008 Share Posted April 18, 2008 probably using the wrong GD function(s). Please post the relevant section of your php code Link to comment https://forums.phpfreaks.com/topic/101662-images-problem/#findComment-520147 Share on other sites More sharing options...
beboo002 Posted April 18, 2008 Author Share Posted April 18, 2008 Here my code is ==================================================== while($arow=mysql_fetch_array($result)) { if($arow[image]!='') { $temp_image=$arow['image']; list($width, $height) = getimagesize("./images/$temp_image"); if($width>120) { $counter=(float)$width/120; $width=120; $height=(float)$height/$counter; } if($height>120) { $counter=(float)$height/120; $height=120; $width=(float)$width/$counter; } } <a class="cat_heading" href="products-<?=$arow[name];?>-0.html" ><img src="images/<?=$arow[image];?>" width="<?=$width?>" height="<?=$height?>" border="0" align="absmiddle" ></a>========================================================================== Link to comment https://forums.phpfreaks.com/topic/101662-images-problem/#findComment-520181 Share on other sites More sharing options...
beboo002 Posted April 18, 2008 Author Share Posted April 18, 2008 any solution Link to comment https://forums.phpfreaks.com/topic/101662-images-problem/#findComment-520225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.