(answered) Image resizing

Raasyvibe

Bluelighter
Joined
Dec 4, 2012
Messages
4,765
Why does bluelight restrict users from using BB code to resize images? Few times I've found an image on the Internet that's too large to be suitable for the thread, yet been unable to downsize it.
 
^ we can take a look at the bb code. why would you be unable to resize an image?

alasdair
 
alright, i just created a custom code called [imgr] (for image with resize).

syntax is this: [imgr=width]url[/imgr]

so:

[imgr=100]http://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg[/imgr]

[imgr=200]http://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg[/imgr]

[imgr=400]http://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg[/imgr]

gives:







that original image is 3000 pixels wide.

alasdair
 
can you try it out and get back here if you notice anything odd?

unfortunately, it's not possible, as far as i can tell, to pass e.g. a discrete height and width as the vbulletin custom code mechanism only allows me to define one parameter. however, i can't imagine anybody would explicitly wish to also alter the aspect ratio of an image so it's probably moot.

alasdair
 
can you try it out and get back here if you notice anything odd?

unfortunately, it's not possible, as far as i can tell, to pass e.g. a discrete height and width as the vbulletin custom code mechanism only allows me to define one parameter. however, i can't imagine anybody would explicitly wish to also alter the aspect ratio of an image so it's probably moot.

alasdair

One parameter is all that is necessary. It overcomes the problem of clogging threads by posting uber-large pics completely. Impressed that you've made this possible so quickly. Thank you.
 
Top