1

Topic: image resizing

What should I do to keep the original size of the picture?
Right now big images are being automaticaly reduced to a smaller forum's size.

2

Re: image resizing

something like this Infiniti (post #6)
http://punbb.org/forums/viewtopic.php?p … 34#p101234

3

Re: image resizing

in base.css, remove

img.postimg {
max-width:100%;
}

4 (edited by paw 2007-10-01 18:22)

Re: image resizing

thanks yemgi
now it looks like this:
http://www.pawforum.ovh.org/viewtopic.php?id=4
sad
and differently on IE and differently on Mozilla Firefox

5

Re: image resizing

The reason it looks different on IE is that IE is using javascript to resize the image because it doesn't understand max-width.

However, since the default styles are designed not to fall apart the forum won't expand to fit large images so instead of being resized they will be cropped. If you want to change it so you can see all of the image then you either need a style created to do that or scroll posts horizontally using overflow or a javascript solution.

6

Re: image resizing

Paul wrote:

If you want to change it so you can see all of the image then you either need a style created to do that or scroll posts horizontally using overflow or a javascript solution.

thank you

so, maybe something like a little solution, please?

7

Re: image resizing

anybody please?

Re: image resizing

Would it help if you linked the resized image to the original size one through bbCode? Then users initially see the resized image but can look at the full size one when they click on it. That's how I always do it when I wanna make sure users have the opportunity to see the full size image and not just a scaled down version.

-TeeJay

9

Re: image resizing

These are JS image viewers. Tried everyone except for Thickbox, and Lytebox seems to be the most resilient and best for speed when configured correctly, in my opinion.


http://www.dolem.com/lytebox/
http://www.huddletogether.com/projects/lightbox2/
http://orangoo.com/labs/GreyBox/
http://jquery.com/demo/thickbox/

10

Re: image resizing

Thanks guys,
but there is another problem.

I would like the pictures to be available only to logined members. Meanwhile what you suggest gives access to the picture to all, it's enough for them to know direct link of  a certain picture. They don't have to log in and will see the picture anyway,e.g.:
http://www.pawforum.ovh.org/stuff/infiniti.jpg

How to block this access?

Re: image resizing

I am not a PHP programmer, so I can't help you with writing scripts that might automatically block access like I think you're looking for. What I can suggest is that you set up a forum on your message board that only registered members can access where it is allowed to post images and links. Of course that would mean more of an administrative effort as someone would have to monitor that users don't post these where it's not allowed if you're looking for that kind of control on your message board.

I believe PunBB also has a gallery mod or plugin, but I've never used it. Maybe it's possible to set that up only for registered users? That's as far as the extent of my brainstorming goes...

-TeeJay