Keyword

**FIXED**Thumbnail needs to be the same size

  • evilsnoop
  • evilsnoop's Avatar Topic Author
  • Offline
  • New Member
More
15 years 2 months ago - 15 years 2 months ago #30461 by evilsnoop
Is there a way to make the thumbnails the same size when there are landscape and portrait type pictures in the folder, i searched the forum but only found a fix for the SIG pro but it don't seem to work with the normal SIG. Can anyone help me out with this?

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

  • evilsnoop
  • evilsnoop's Avatar Topic Author
  • Offline
  • New Member
More
15 years 2 months ago - 15 years 2 months ago #30462 by evilsnoop
Replied by evilsnoop on topic Re: **FIXED**Thumbnail needs to be the same size
After some hours of trials i got the thumbnails to be the same size in SIG, for ppl with the same problem here is what i did.

This will not crop the pictures but stretch the thumbnails to meet the required size in your plugin parameters. Make sure the width and height are the same e.g(100/100)

Look for the showthumb.php file on your joomla site it should be in plugins > content > plugin_jw_sig.

1)Make a backup copy of that file.
2)Open the showthumb.php in an editor like notepad or dreamweaver.
3)On line 27 you should see $new_h = (int)($imagedata[1]*($new_w/$imagedata[0]));
4)Replace the line with $new_h = (int)($imagedata[0]*($new_w/$imagedata[0]));
5)Save your work and you are done.

In case for some design reason you dont want the plugin parameters to be the same e.g (100/100) and want the thumbnails e.g (150/100) or (100/150)

Play around with the [ 0 ] and [ 1 ] on line 27 and 31 until you get it to look the way you want

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


Powered by Kunena Forum