Images smaller than thumbnail size

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 9 months ago #6341

If the image size for a product is smaller than the configured thumbnail size the thumbnail file does not created created and no image is displayed.

Tracked this down to generateThumbnail($file_path) in image.php returning true when it should return false.

A quick fix is to change line 174. From:

if (isset ($gd["GD Version"])) {
  $ok = true;
  $gd_ok = true;
  ...
to:
From:
if (isset ($gd["GD Version"])) {
  $ok = false;  // Change this line
  $gd_ok = true;
  ...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #6346

Indeed. That is now corrected.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum