Jump to content

(SOLVED) image too large in admin


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...