Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - patrick_

Pages: [1]
1
Discussion & Troubleshooting / 3 columns at 34% - not 33%
« on: February 05, 2008, 10:18:44 PM »
The subject says it all :D

I supose someone else asked this question before, but I haven't able to find it.
My problem is that I use the standard layout (but I changed the width). Using 3 columns to show thumbs, each column has 34%. I'm not able to find where this number comes from, because 100 divided by 3 is 33% (so there must be some kind of rounding error)
This may seem like a very little problem, but it's very clear that the third column is much smaller that the others.
My table is 720pixels so at 34%, without counter any borders, I'm left with: 244px, 244px, and 228px
That's a diference of 16 pixels!!

I hope someone can solve my problem.

Thanks in advance.

2
Mods & Plugins (Requests & Discussions) / max thumbnail height and width
« on: February 04, 2008, 07:24:51 PM »
I do not allow my users to upload thumbnails, all are being created by 4images.

The images uploaded are screen captures. So the dimensions vary a lot. I want a 4:3 image to be smaller than 16:9 - so I set height to 90 (that would make 160x90 and 120x90 thumbs). Now the problem is when I add a picture in 2,35:1 (theater) it thumb will be 212x90, but I would like it to be smaller than the 16:9.

I hope someone understands this horrible explanation. Some numers to understand better:
1,33:1 = 120x90
1,78:1 = 161x90
2,35:1 = 161x69

so actually I just want to limit width to 161 and height to 90 when auto-creating thumbs.

I hardly know PHP (just enough to make small changes to code), but know nothing about ImageMagick, GDLibrary, or NetPBM. BTW I'm using GD for no particular reason, my server has all three and I didn't know which one to choose.
I guess it should be an easy thing to do, but just don't know how to do this in PHP.

Thanks in advance.

Regards,
Patrick

Pages: [1]