The Flat Earth Society

The Flat Earth Society => Suggestions & Concerns => Topic started by: Onix on May 06, 2014, 07:24:06 PM

Title: Legit suggestion about how to handle large pictures in posts...
Post by: Onix on May 06, 2014, 07:24:06 PM
Check out this thread on ffxiah.com (a website for auction house in Final Fantasy XI).

http://www.ffxiah.com/forum/topic/21426/pics-that-make-you-lol/1065/

Whatever script or code they're using makes the pictures automatically smaller but you can click on them to make them full size. Really nifty.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 06, 2014, 08:27:59 PM
Easy enough. I wrote a small change to the JavaScript that currently handles image resizing. We can deploy it anytime if people think this is a good idea.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Onix on May 06, 2014, 08:31:01 PM
Easy enough. I wrote a small change to the JavaScript that currently handles image resizing. We can deploy it anytime if people think this is a good idea.

I'm all for it. Noticed I posted some large pictures in CN and they were just oriented all wonky and a mod resized them. Which is fine but it'd be nice to have an option to resize on click.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 06, 2014, 08:33:18 PM
I'm all for it. Noticed I posted some large pictures in CN and they were just oriented all wonky and a mod resized them. Which is fine but it'd be nice to have an option to resize on click.
The way it's currently supposed to work is that if you post a resized image, you can click to restore it to the full size, e.g.:

(http://i.omgomg.eu/wolmire)

While writing the changes I noticed that the CN theme doesn't do that, so we'll fix that at the very least. But I think I agree with you that setting a maximum image width is a good idea.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 06, 2014, 09:08:26 PM
For the time being, I pushed changes to the default, tintagel_fes (https://github.com/theflatearthsociety/forum.tfes.org/commit/3208474800e86657d32dac3b758a92b4c4ae3409) and Core (https://github.com/theflatearthsociety/forum.tfes.org/commit/5b7f842b7aaad444fa583577917acf0a2c82ec13) themes for Parisifal to review and deploy. Christmas_Season_2 (aka CN) is being a bit harder to modify, but I'll have a look at it Soon(tm).
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: fappenhosen on May 06, 2014, 09:43:17 PM
Rejected pull request. Please add readme.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 08, 2014, 03:25:03 AM
Don't mind me, just posting a ginormous image without specifying the width.

(http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg)

(Currently not implemented in CN because the CN theme is fucking horrible)
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: fappenhosen on May 08, 2014, 08:12:17 PM
back in the day that kind of shit would get you banned.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 08, 2014, 08:14:23 PM
back in the day that kind of shit would get you banned.
Luckily, those grim times are nothing more but a thing of the past.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: markjo on May 09, 2014, 02:07:17 AM
Don't mind me, just posting a ginormous image without specifying the width.

http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg

(Currently not implemented in CN because the CN theme is fucking horrible)
Is it just me, or does the whole image load full size before it's resized?
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Lord Dave on May 09, 2014, 02:20:17 AM
Don't mind me, just posting a ginormous image without specifying the width.

http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg (http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg)

(Currently not implemented in CN because the CN theme is fucking horrible)
Is it just me, or does the whole image load full size before it's resized?
It does.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: markjo on May 09, 2014, 02:34:21 AM
Don't mind me, just posting a ginormous image without specifying the width.

http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg (http://rickpdx.files.wordpress.com/2008/03/huge-ssc2006-17a.jpg)

(Currently not implemented in CN because the CN theme is fucking horrible)
Is it just me, or does the whole image load full size before it's resized?
It does.
Should it?  I may be wrong, but it almost seems to defeat the purpose.
Title: Re: Legit suggestion about how to handle large pictures in posts...
Post by: Pete Svarrior on May 09, 2014, 02:49:26 AM
It does, yes. I didn't think it would be a problem (keep in mind that most pictures won't be quite as huge and will load considerably faster). This could be solved by making the images load with the width limit already in place.

A consequence of that would be that if you were to load the thread with no javascript support, you would always see the images scaled down without an easy way of scaling them back up. The way I have it set up, if you view the thread with no JS, you will see all images in their full size (i.e. no difference from how things were in the past). If people feel that having it the other way around would be better, that's a very easy fix.

EDIT: Actually, it won't be that hard to get the best of both words. I'll fix it soon.