Page MenuHomePhabricator

Allow larger/user-specified thumbnail sizes
Closed, DeclinedPublic

Description

Author: bugzilla

Description:
Currently, the "Thumbnail size" preference only goes up to a maximum of 300px. There are people with larger screens and poorer vision who many want to be able to put it up to sizes as large as 500px, but can't. It would be nice if either options were added for larger sizes up to 500px, or the preference was turned into a text field, so that users could specify the exact thumbnail size they wanted.

This is filed against 1.9.3, but looking at Wikipedia, it's still an issue in 1.11.x.


Version: 1.9.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=69973

Details

Reference
bz11118

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:52 PM
bzimport set Reference to bz11118.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

From memory, this should be able to be cranked up using a config global...

Right: see the global variable from defaultSettings.php

$wgThumbLimits = array(
120,
150,
180,
200,
250,
300
);

and add i.e.

$wgThumbLimits[] = 500;

to your localSettings.php

(In reply to comment #2)
This allows you to add predefined sizes. But still there's no chance for user to define his own size, which was the part of original request.

That's not likely to happen; we'd prefer to reduce the number of available thumbnail sizes to save on bandwidth, cache, and thumb disk space.

(In reply to comment #4)

That's not likely to happen; we'd prefer to reduce the number of available
thumbnail sizes to save on bandwidth, cache, and thumb disk space.

You can make it optional via eg. $wgAllowUserDefinedThumbnailSize and have it false for WMF wikis.

bugzilla wrote:

I didn't realise there was a setting for it; I probably should've checked. Thanks.
I did think about the cache size problems, and I would agree that a freeform size entry is not a good solution, seeing as there is already a setting for it. As long as the admin set sensible allowed sizes, I can't see why people would need a freeform entry --- they're hardly going to want 327px thumbnails, are they?

I'm fine with closing the bug as invalid/wontfix. Thanks for your time. :-)

ayg wrote:

(In reply to comment #5)

You can make it optional via eg. $wgAllowUserDefinedThumbnailSize and have it
false for WMF wikis.

We shouldn't add another config option that we have to maintain when only two wiki admins are ever going to bother to turn on and that will clutter the user interface to boot. Reclosing.