techker Posted September 29, 2013 Share Posted September 29, 2013 hey guys when i set the width i seem to be getting a distorded image... <?php echo (empty($info['Image_3'])? "<img src=/images/noimage.jpg >": "<img src=/admin/uploads/thumbs/". $info['Image_3'] ." border=0 width=200 >");?> Link to comment https://forums.phpfreaks.com/topic/282531-picture-width-distortion/ Share on other sites More sharing options...
Ch0cu3r Posted September 29, 2013 Share Posted September 29, 2013 You're just scaling the image to that size. You're not modifying the image. When scaling distortion can happen. How is the original thumbnail created? And what dimensions are thumbnails. Link to comment https://forums.phpfreaks.com/topic/282531-picture-width-distortion/#findComment-1451692 Share on other sites More sharing options...
Strychnine Posted October 9, 2013 Share Posted October 9, 2013 Ch0cu3r is correct, changing aspect ratio of an image in the code does not actually effect the image. Thus the more you increase the image size, the worse the quality. Link to comment https://forums.phpfreaks.com/topic/282531-picture-width-distortion/#findComment-1453282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.