prestashop_newuser Posted September 24, 2013 Share Posted September 24, 2013 Hi, Here in my module I have uploaded store image to the database and while I am doing fetching from the database I am using this code to get the image $result = mysql_query("SELECT * FROM "._DB_PREFIX_."storeimages WHERE `city_name`='".$_GET['details']."'"); while($row = mysql_fetch_array($result)){ echo '<div class="store-img">'; echo '<img class="store-image" src="modules/storeimages/'.$row['store_image'].'" width="100px" height="100px" >'; echo '</div>'; } Here you can see I have used width 100px and height 100px for image size. But this one is disturbing the image aspect ratio. To solve this I have searched over google and I got that imagemagick is a good option for that.But I don't know how to use imagemagick in prestashop and how can I use imagemagick here? Any help and suggestions will be really appreciable. Thanks Link to comment Share on other sites More sharing options...
vekia Posted September 24, 2013 Share Posted September 24, 2013 you can use only one param, for example width="100" then your image will be resized proportionally Link to comment Share on other sites More sharing options...
Recommended Posts