PrestaShop Forums: (SOLVED) image too large in admin - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


(SOLVED) image too large in admin


(SOLVED) image too large in admin

#1 babyewok

    PrestaShop Apprentice

  • 26 Mar 2009
  • Members
  • PipPip
  • 312 posts

Posted 24 August 2010 - 03:19 PM

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.

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 25 August 2010 - 02:23 AM

What version of PrestaShop are you using? I thought this issue was fixed in PrestaShop v1.3.

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 25 August 2010 - 09:20 AM

version 1.3.1.1

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 25 August 2010 - 12:38 PM

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.

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 26 August 2010 - 09:14 AM

Thanks that works fine

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 September 2010 - 08:12 AM

I got the same issue. The fix provided by Rochy works for me too. Thanks Rochy.

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 10 May 2011 - 03:12 PM

From 1282736326:

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users