Page 1 of 1

Concerning images in phpBB and others

Posted: Tue Jun 24, 2003 11:39 pm
by HungryMind
I was just curious as to why programmers of bulletin boards create a set size for images in their code. If I wanted to change, for example, the image for a posticon and it was a different size than the original, my image would be distorted to the size of the original image. This forces me to go through the code and find out where the codes for the images are and delete the size restrictions.

Why why why do they do this? It's really annoying!

Also: does phpBB2 do this or is it easier to change out images in this newer version?

Posted: Wed Jun 25, 2003 1:33 am
by patrikG
Setting an image's height and width is pure HTML. And yes, while you can easily get away with just providing the img-source and thus having relative height and width (e.g. <img src="bla/blabla.jpg"> ), the purpose of absolute values is if the image can not be loaded, a placeholder will there instead with that height and width. That way the layout is not destroyed, hence it's advisable to use height and width.

If you use HTML-editors like Dreamweaver: they insert size-restrictions by default. I would consult the manual to see whether you can change it.