babyewok Posted August 24, 2010 Share Posted August 24, 2010 When viewing a list of products in a category in the back office, if an image is too wide, the table gets pushed over the edge of the admin area. I can see that the image in question is ../img/tmp/product_mini_xx.jpg. However, I cannot see where I can set the dimensions for this image. Link to comment Share on other sites More sharing options...
rocky Posted August 25, 2010 Share Posted August 25, 2010 What version of PrestaShop are you using? I thought this issue was fixed in PrestaShop v1.3. Link to comment Share on other sites More sharing options...
babyewok Posted August 25, 2010 Author Share Posted August 25, 2010 version 1.3.1.1 Link to comment Share on other sites More sharing options...
rocky Posted August 25, 2010 Share Posted August 25, 2010 You're right. I just tried uploading a very wide photo and the table doesn't display right. So much for it being fixed.I fixed it by changing line 43 of images.inc.php from: return '<img src="../img/tmp/'.$cacheImage.'" alt="" class="imgm" />'; to: return '<img src="../img/tmp/'.$cacheImage.'" width="'.$size.'" alt="" class="imgm" />'; The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker. 1 Link to comment Share on other sites More sharing options...
babyewok Posted August 26, 2010 Author Share Posted August 26, 2010 Thanks that works fine Link to comment Share on other sites More sharing options...
Thierryh Posted September 5, 2010 Share Posted September 5, 2010 I got the same issue. The fix provided by Rochy works for me too. Thanks Rochy. Link to comment Share on other sites More sharing options...
miyuru Posted May 10, 2011 Share Posted May 10, 2011 You're right. I just tried uploading a very wide photo and the table doesn't display right. So much for it being fixed.I fixed it by changing line 43 of images.inc.php from: return '<img src="../img/tmp/'.$cacheImage.'" alt="" class="imgm" />'; to: return '<img src="../img/tmp/'.$cacheImage.'" width="'.$size.'" alt="" class="imgm" />'; The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker. man thanks man you rock this fix my problem and my images are now small in admin area thanks alot i owe you one man you rock Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now