I've just released a couple minor improvements to the [img] and [thumb] dBCodes. You can now specify a height along with a width. For example, this would specify that the image be displayed at 100 pixels wide by 200 pixels high:
[img=100x200]http://mysite.com/myimage.jpg[/img]
If the actual image width is larger than the displayed image width then when you click on the image it will grow to it's actual width, but the aspect ratio of 100x200 will be maintained. In other words, the image will still be twice as high as wide, as seen here. The first image specifies only a width of 100, while the second specifies a width/height of 100x200, click on the images to see how aspect ratio is maintained:
The other minor improvement is that extraneous white space around the arguments is ignored. For example, this now works:
[img= 100 , left ]http://mysite.com/myimage.jpg[/img]
It would display like this:
Edited by Admin, : Grammar.
Edited by Admin, : Grammar again.
Edited by Admin, : Rerender now that newly introduced image display bug is fixed.
-- | Percy |
| EvC Forum Director |