Resizing images for forums

Ask and help answer questions about the WolfQuest game and forum. Check the Knowledge Base first! http://support.wolfquest.org

Moderator: Neamara

Post Reply
User avatar
alethe
Senior Member
Senior Member
Posts: 2851
Joined: Thu Dec 17, 2009 4:39 pm
Name: [REDACTED]
Gender: Female
Location: scadrial
Contact:

Resizing images for forums

Post by alethe » Mon Aug 16, 2021 11:54 am

Kind of a question, kind of a suggestion...

Currently, images using the IMG tag do not resize. This means that, in order to fit the image in the forum space, they must be resized manually by the user. I've been doing this via discord previews, but the quality gets lowered drastically.

Is there a way to do this in the forum coding itself? OR is there a setting somewhere that needs to be flipped on for images to be resized automatically to fit in the forum's textbox space?


_ _ _ _ _ _ _ _ _ _ _ _ ⋯⋯⋯_ _ _ _ _ _ _ _ _ _ _ _
ARE YOU A JEDI ?
_ _ _ _ _ _ _ _ _ _ _ _ ⋯⋯⋯_ _ _ _ _ _ _ _ _ _ _ _


av/sig : fidd/lupe

User avatar
Neamara
WolfQuest Moderator
WolfQuest Moderator
Posts: 5887
Joined: Sat Feb 14, 2009 3:57 am
Gender: Female
Location: England, United Kingdom
Contact:

Re: Resizing images for forums

Post by Neamara » Mon Aug 16, 2021 12:48 pm

There is a resize image BBCode we've had for a while, but it wasn't shared publicly due to the lack of restrictions we could impose to prevent abuse, since it doesn't tie into the restrictions of normal IMG tags. As of the last forum upgrade, it's been enabled for Image & Media Tags usergroup members thanks to an added extension.

Code: Select all

[url=Full Size URL][rimg=640]Direct Image URL[/rimg][/url]
I'll see if there are any ways to enforce automatic resizing without resorting to that BBCode. (I realize I did say the forum will handle image resizing in the Wolf Artwork instructions sticky, which I'll address -- the error came from thinking attachment logic, not IMG bbcode logic. My bad! 😰)
Nothing interesting happens.
[XBL] • [Switch SW-7220-7090-5161]

WQ Wiki WQ Discord WQ Reddit
Avatar © Dieselpvnk

User avatar
alethe
Senior Member
Senior Member
Posts: 2851
Joined: Thu Dec 17, 2009 4:39 pm
Name: [REDACTED]
Gender: Female
Location: scadrial
Contact:

Re: Resizing images for forums

Post by alethe » Mon Aug 16, 2021 4:07 pm

okie, lemme try this out real quick...



well it previews correctly. let's see if it stays the same when i hit the real submit...

edit: oh perfect! thank you for plugging that in neam!


_ _ _ _ _ _ _ _ _ _ _ _ ⋯⋯⋯_ _ _ _ _ _ _ _ _ _ _ _
ARE YOU A JEDI ?
_ _ _ _ _ _ _ _ _ _ _ _ ⋯⋯⋯_ _ _ _ _ _ _ _ _ _ _ _


av/sig : fidd/lupe

User avatar
Sambhur
Former WQ Moderator
Posts: 1922
Joined: Mon Jan 04, 2010 7:39 pm
Location: australia

Re: Resizing images for forums

Post by Sambhur » Mon Aug 16, 2021 10:02 pm

I was actually trying to work out which resize code this forum uses the other week so I'm really glad this got brought up. Thanks!
avatar by LupinzPack

User avatar
DaniBeez
Senior Member
Senior Member
Posts: 600
Joined: Fri Jul 28, 2017 8:15 pm
Gender: Female
Location: Canada
Contact:

Re: Resizing images for forums

Post by DaniBeez » Fri Aug 20, 2021 10:17 am

Wait, I thought too-large images were already being automatically resized with respect to width on the forums? I wasn't doing anything special on my phone photography thread for resizing, for example. Good to know there is a manual option, though. Just confused about if automatic resizing is happening or not?! Is it only occurring in certain areas?
DaniBeez
___Community member since 2010
___Avatar by Sambhur

User avatar
Sambhur
Former WQ Moderator
Posts: 1922
Joined: Mon Jan 04, 2010 7:39 pm
Location: australia

Re: Resizing images for forums

Post by Sambhur » Fri Aug 20, 2021 6:50 pm

DaniBeez wrote:
Fri Aug 20, 2021 10:17 am
Wait, I thought too-large images were already being automatically resized with respect to width on the forums? I wasn't doing anything special on my phone photography thread for resizing, for example. Good to know there is a manual option, though. Just confused about if automatic resizing is happening or not?! Is it only occurring in certain areas?
I was actually under this impression as well and am also curious to know the answer. I only wanted to know about manual resizing for my own convenience/preference ahaha.
avatar by LupinzPack

User avatar
Neamara
WolfQuest Moderator
WolfQuest Moderator
Posts: 5887
Joined: Sat Feb 14, 2009 3:57 am
Gender: Female
Location: England, United Kingdom
Contact:

Re: Resizing images for forums

Post by Neamara » Sat Aug 21, 2021 9:08 pm

Well, we can certainly test that... here's a 1920x1080 screenshot using vanilla image tags.
Image
I've checked the result in each of the installed styles. It does!

I know older board versions didn't auto-resize anything, so it's nice to know that phpBB is capable of it now. I'm going to leave rimg tags available in case anyone wants to use it for manual on-site resizing.
Nothing interesting happens.
[XBL] • [Switch SW-7220-7090-5161]

WQ Wiki WQ Discord WQ Reddit
Avatar © Dieselpvnk

User avatar
Sambhur
Former WQ Moderator
Posts: 1922
Joined: Mon Jan 04, 2010 7:39 pm
Location: australia

Re: Resizing images for forums

Post by Sambhur » Sat Aug 21, 2021 9:27 pm

Awesome, thanks Neam! And yeah, I still think that manual resizing is still very needed for stuff like non-landscape images lmao.
avatar by LupinzPack

User avatar
DaniBeez
Senior Member
Senior Member
Posts: 600
Joined: Fri Jul 28, 2017 8:15 pm
Gender: Female
Location: Canada
Contact:

Re: Resizing images for forums

Post by DaniBeez » Sun Aug 22, 2021 7:47 pm

Thanks, good to know 👍
DaniBeez
___Community member since 2010
___Avatar by Sambhur

Post Reply