Many boards encounter the problem with large posted images destroying the whole layout of their forum or otherwise the images being cutoff (depending on the used style). Both aren't really a good presentation of the forum.
Nowadays almost everyone posting a photo has taken that photo on a way to large resolution and have no idea of resizing it themselves or even think about the consequences. Therefore I always install the ReIMG Image Resizer by DavidIQ. Since it's one of the most popular MODs in de database for 3.0 and this is a very common issue, plus it destroys the layout, I think a prevention for should be build-in.
I recon the MOD mentioned above is pretty much OK to build in the core. Perhaps the more fancy stuff like the highslide and the lightbox should not be included by default, since it's only purpose is eyecandy. That's more for style-authors I think.
Another alternative is to resize the images server sided. That way you prevent large loading times for the user when there are many large images in a post. A start for an approach like that is in the topic [BETA] Auto Image Resize 0.0.3 (Non-JavaScript) in the modifications forum. That's a choice between server sided load and client sided load.
[RFC] Default image resizing
[RFC] Default image resizing
Above message may contain errors in grammar, spelling or wrongly chosen words. This is because I'm not a native speaker. My apologies in advance.
-
- Registered User
- Posts: 523
- Joined: Sat Apr 22, 2006 10:29 pm
- Contact:
Re: [RFC] Default image resizing
I agree... An image re-sizer should be in the core. An uploaded image should not be allowed to break a style.
Ditto with the statement that they eye candy is not necessary.
Ditto with the statement that they eye candy is not necessary.
Re: [RFC] Default image resizing
To be honest when resizing an image it should be made clear that the image has been resized, what forums typically do is have that orange/white/whatever bar saying "this image has been reiszed from Y x Z click to enlarge" .
But having it in core and the ability to disable (enable by default) would be cool.
But having it in core and the ability to disable (enable by default) would be cool.
Re: [RFC] Default image resizing
As related issue, if implementing jQuery is accepted, then we could also use a jQuery lightbox to display attached images.
Perhaps this RFC could be broadened to consider handling of attachments to automatically create a small thumbnail, then on-click to display the full-sized version [this is instead of using DavidIQ's mod which does resizing client-side and thus the full-sized file is still downloaded initially, not a thumbnail].
I have the code for the latter in this thread. Not putting it here since it relates to broadening the original RFC.
Perhaps this RFC could be broadened to consider handling of attachments to automatically create a small thumbnail, then on-click to display the full-sized version [this is instead of using DavidIQ's mod which does resizing client-side and thus the full-sized file is still downloaded initially, not a thumbnail].
I have the code for the latter in this thread. Not putting it here since it relates to broadening the original RFC.
Re: [RFC] Default image resizing
Well, I kinda like the idea of resizing server sided. On the other hand, I still think lightbox/highslide etc is just eyecandy. Nice, but it hurts performance on older machines. When lightbox or an alternative is implemented, the admin or the users should have the possibility to turn it off and fall back to simply opening the image in the browser window.
My thought now: when someone is attaching an image or posting an image with BBcode larger than in ACP enterend dimensions, a small thumbnail should be created and stored in the phpBB folder. When viewing a topic, this thumbnail should be shown. Clicking on the thumbnail should than result in either a lightbox or just the original image, depening on ACP/UCP settings.
My thought now: when someone is attaching an image or posting an image with BBcode larger than in ACP enterend dimensions, a small thumbnail should be created and stored in the phpBB folder. When viewing a topic, this thumbnail should be shown. Clicking on the thumbnail should than result in either a lightbox or just the original image, depening on ACP/UCP settings.
Above message may contain errors in grammar, spelling or wrongly chosen words. This is because I'm not a native speaker. My apologies in advance.
Re: [RFC] Default image resizing
Agreed.Ger wrote: My thought now: when someone is attaching an image or posting an image with BBcode larger than in ACP enterend dimensions, a small thumbnail should be created and stored in the phpBB folder. When viewing a topic, this thumbnail should be shown. Clicking on the thumbnail should than result in either a lightbox or just the original image, depening on ACP/UCP settings.
An admin like me can easily add the lightbox code on top of that implementation, or it could be an option in ACP/UCP as a nice modernising touch.
The key things for me are:
a) server-side creation of thumbnails for large images (using GD or ImageMagick, like now)
b) use of that thumbnail in the post, clicking on which opens the full-size image.
I much prefer a & b to resizing it using width parameter, and thus having the full-sized image therefore in the post itself, so clicking it just reveals the full-sized image. That doesn't give any gain to page loading speeds.
I have the code for that in my link above, fwiw, which I borrowed from air-box mod.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Default image resizing
I don't think I like the idea of having locally stored thumbnails of images from external sites. I mean that would defeat the purpose of having the img BBCode tag which is to show an image without having it or anything related to it besides the link stored on the local forum. Then it becomes a bit more complicated if the image no longer exists at some point or if someone quotes such a post. Right now if you quote a post with an attached image you don't actually get the image although that could, of course, change.
Re: [RFC] Default image resizing
Good distinction. I did not mean to say we should have local thumbnails of remote images. My intended scope was for attached images.
- A_Jelly_Doughnut
- Registered User
- Posts: 1780
- Joined: Wed Jun 04, 2003 4:23 pm
Re: [RFC] Default image resizing
Please, anything but a lightbox. Although I would consider this a templating/styling issueGravityDK wrote:As related issue, if implementing jQuery is accepted, then we could also use a jQuery lightbox to display attached images.
A_Jelly_Doughnut