Page 1 of 1
Resizing Images in [img]...[/img] tag
Posted: Fri May 20, 2022 7:28 am
by alek
Hi,
Is there a way to resize an image that been placed inside the img tags?
Code: Select all
[img resizeCommandsGoHere]somePicture[/img]
Before you respond, please assume I'm an idiot when it comes to coding... because I am.
Re: Resizing Images in [img]...[/img] tag
Posted: Fri May 20, 2022 4:47 pm
by mgil
alek wrote: ↑Fri May 20, 2022 7:28 am
Hi,
Is there a way to resize an image that been placed inside the img tags?
Code: Select all
[img resizeCommandsGoHere]somePicture[/img]
Before you respond, please assume I'm an idiot when it comes to coding... because I am.
Not that I know of. I thought it just displayed the image scaled to display.
Re: Resizing Images in [img]...[/img] tag
Posted: Mon May 23, 2022 3:57 pm
by alek
mgil wrote: ↑Fri May 20, 2022 4:47 pm
alek wrote: ↑Fri May 20, 2022 7:28 am
Hi,
Is there a way to resize an image that been placed inside the img tags?
Code: Select all
[img resizeCommandsGoHere]somePicture[/img]
Before you respond, please assume I'm an idiot when it comes to coding... because I am.
Not that I know of. I thought it just displayed the image scaled to display.
Makes sense; thanks.
Re: Resizing Images in [img]...[/img] tag
Posted: Sun May 29, 2022 5:59 am
by BenM
How's this - I just created a new BBCode, [imgrs]
Use it the same as the [img] BBCode, but with a percentage to resize the image (based on the width of the forum). So to resize it to 50% you'd go like [imgrs=50]https://path/to/image[/imgrs]
I'll test it in the next post....
Re: Resizing Images in [img]...[/img] tag
Posted: Sun May 29, 2022 6:06 am
by BenM
Resize to 10%
Resize to 50%
Resize to 80%
Seems like it!
PS I just stole the code/idea from someone else on another forum, can't take all the credit.
Re: Resizing Images in [img]...[/img] tag
Posted: Sun May 29, 2022 6:15 am
by mgil
Nice work! @BenM
Re: Resizing Images in [img]...[/img] tag
Posted: Tue May 31, 2022 8:51 am
by alek
Yes! That’s great!