News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

[BBC] Scaling images with only one parameter

Started by Dr. House, December 12, 2009, 02:26:43 AM

Previous topic - Next topic

Dr. House

I found out, by mistake, that you do not have to enter both width & height parameters when scaling an image, and at the same time, keeping the original aspect ratio.

ie "[img width=300 height=300..."

Just typing in the width (or height) alone, will maintain the original ratio.
No more cross multiplication or trial and error to get it right.

Original


Scaled

[IMG width=65]http://i33.photobucket.com/albums/d96/tmwouss/thirteen-house.jpg[/IMG.]

Arantor

Yup, same deal works for just height too.

Thanks for sharing!

(Btw, you can use [nobbc] to explain code without having to use . or any funny characters in the bbcode)
Holder of controversial views, all of which my own.


Advertisement: