When the users are posting images, some of the images are coming out way too wide - is there any way of getting them to auto resize, say to 300px wide.
Any help appreciated.











Handyman wrote:Besides the way they work (check out the demos for both), Lightbox is written with jQuery and Highslide is not, I don't know if that effects your decision or not.
They both auto resize and both look very cool.


_Chris_ wrote:When the users are posting images, some of the images are coming out way too wide - is there any way of getting them to auto resize, say to 300px wide.
Any help appreciated.
[image]{URL}[/image]<img src="{URL}" alt="image" style="max-width:300px;max-height:300px;" />

Krupski wrote:_Chris_ wrote:When the users are posting images, some of the images are coming out way too wide - is there any way of getting them to auto resize, say to 300px wide.
Any help appreciated.
If they are using the IMG bbcode to post images, just make a new bbcode (maybe named "image"?) like this:
The bbcode:
- Code: Select all
[image]{URL}[/image]
The HTML:
- Code: Select all
<img src="{URL}" alt="image" style="max-width:300px;max-height:300px;" />
Images will be auto-scaled to be no more than 300px wide or high (whichever is larger).
You may want to "comment out" the original IMG bbcode on your board as well to force your users to use IMAGE instead of IMG.....








Users browsing this forum: No registered users and 11 guests