Resize linked image via BBcode?
Resize linked image via BBcode?
I see that BBCode is on for the board. Is the image resizing code enabled? I'm linking in pictures from another site where for some reason the horizontal ones are smaller than the verticals, and I want to resize. It looks like BBCode should be able to do that via either [img height="600"] or [img=800x600] or [img h=600], but all of those kill the [img] tag. Is there a way to make it work?
#pnw #bestlife #bitingflies #favoriteyellowcap #neverdispleased
Re: Resize linked image via BBcode?
In all my experiences, the only resizing occurring/supported here, is that all inlined images are clamped at 800px horizontally. I haven't found a way, other than use the differently sized options on Flickr, to control it otherwise. Having native support would be nice!
Karl
Back on the trail, again...
Back on the trail, again...
Re: Resize linked image via BBcode?
Believe it or not, it's not supported by phpbb3 natively.
I added a new bbcode rimg (resizable image). It allows you to specify a width and height, and if the image is clicked on it will pop open to a new tab.
http://www.portlandhikersfieldguide.org ... kers01.jpg
I added a new bbcode rimg (resizable image). It allows you to specify a width and height, and if the image is clicked on it will pop open to a new tab.
Code: Select all
[rimg=width,height]url[/rimg]
-Dan
Site Tech Helper
Site Tech Helper
Re: Resize linked image via BBcode?
And also timg (thumbnail image) which allows you to just specify a width, for quick resizing:
Code: Select all
[timg=width]url[/timg]
-Dan
Site Tech Helper
Site Tech Helper
Re: Resize linked image via BBcode?
Nice additions, Dan!
Wondering if the [timg] tag will allow photos wider than 800px now?
No go. Alright, let's try the resizer one...
http://farm3.staticflickr.com/2824/1202 ... 4fdb_o.jpg
Hmmm, okay, looks like 800px is still the clamping width.
Which is probably good, to avoid the dreaded hscrollbar!
Thanks...
Wondering if the [timg] tag will allow photos wider than 800px now?
No go. Alright, let's try the resizer one...
http://farm3.staticflickr.com/2824/1202 ... 4fdb_o.jpg
Hmmm, okay, looks like 800px is still the clamping width.
Which is probably good, to avoid the dreaded hscrollbar!
Thanks...
Karl
Back on the trail, again...
Back on the trail, again...
Re: Resize linked image via BBcode?
We could have a few different max widths based on your screen size...
-Dan
Site Tech Helper
Site Tech Helper
Re: Resize linked image via BBcode?
Interesting idea. Not sure I'd agitate for it, though, if it meant needing to maximize a browser to avoid the horizontal scrollbar. (I'm one of those with dozens of overlapping, defiantly non-maximized, windows! ) Most hosting sites make it real easy to link to a larger image, as do your new rimg/timg tags!Martell wrote:We could have a few different max widths based on your screen size...
Karl
Back on the trail, again...
Back on the trail, again...
Re: Resize linked image via BBcode?
I'd generally avoid giving people control over both height and width, or they're going to skew the aspect ratio and images will get distorted.
Also don't forget that the full image needs to be downloaded even if you shrink it to a tiny display, so people load times will take just as long (if not longer) if people start to not resize their images independently..
Also don't forget that the full image needs to be downloaded even if you shrink it to a tiny display, so people load times will take just as long (if not longer) if people start to not resize their images independently..
Re: Resize linked image via BBcode?
Cool, Dan! Thanks!
#pnw #bestlife #bitingflies #favoriteyellowcap #neverdispleased