View Full Version : Original ratio thumbnails
11-07-2006, 11:18 AM
I'm having a problem with having horizontal and vertical original (not cropped) thumbnails on the same thumbnail line.
Here is an example:
The thumb of the current image is correct, but it forces the other two thumbs which are horizontal to have the same width as the vertical thumbnail. In the archive page there is no conflict between vertical and horizontal.
Thanks for your help.
11-09-2006, 04:22 PM
Do what I do, make your thumbs square and use 12crop (or whatever that option's called) to pick what areas of the image to show as the thumbnail. It's kind of fun, because you can make an image from an image.
11-10-2006, 09:48 PM
That's not exactly the answer I was looking for, I switched to full ratio because I prefered it to square crops.
11-11-2006, 05:10 PM
11-18-2006, 01:02 PM
Have I stumped everyone?
Can anyone point me in the right direction to modify the php files to take out whatever code makes the line of thumbnails have the same exact width and height each?
Set it in options (Admin panel -> options -> THUMBNAILS). Dont hardcode it as in next fresh release all your changes will disapear (if you wouldnt move it manualy).
11-25-2006, 10:58 AM
Set what in admin options? There is no option that allows vertical and horizontal thumbnails to maintain their proper ratio one next to another.
There has to be a line of code that forces the same aspect of the current thumbnail on all the thumbnails displayed in the main template -- otherwise I wouldn't be having this problem.
Take a look at the site today, I posted a vertical image yesterday and so the previous 4 images which are horizontal have been distorted into vertical.
If you are talking about thumb row then it should to take width and height from image. It is possible that in this version there still is bug related to the size of thumbs.
Open /index.php at line 354 and change:
list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_name");
list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image");
and same in line 368.
11-26-2006, 12:00 PM
Thank you very much for your help Geo, sorry I had problems explaining myself.
From yesterday or more its fixed in SVN so new release will be free from this issue.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.