Concerning images in phpBB and others

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
HungryMind
Forum Commoner
Posts: 41
Joined: Fri Jun 20, 2003 10:33 am
Location: Alameda, CA

Concerning images in phpBB and others

Post 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?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
Post Reply