Page MenuHomePhabricator

Add widescreen resolutions to Image size limits for file description pages
Closed, ResolvedPublicFeature

Description

Author: nsk

Description:
The default value of $wgImageLimits should be updated to include widescreen resolutions.

now it is:

array (

array(320,240),
array(640,480),
array(800,600),
array(1024,768),
array(1280,1024),
array(10000,10000) 
)

it could be:

array (

array(320,240),
array(640,480),
array(800,480),
array(800,600),
array(1024,600),
array(1024,768),
array(1280,800),
array(1280,1024),
array(1440x900),
array(1680x1050),
array(10000,10000) 
)

Version: 1.14.x
Severity: enhancement
URL: https://commons.wikimedia.org/w/index.php?title=Commons:Village_pump/Proposals&oldid=88502688#Choices_of_size_of_image

Details

Reference
bz16081

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:18 PM
bzimport set Reference to bz16081.
bzimport added a subscriber: Unknown Object (MLST).

I'm not sure about this, but wouldn't that change break the settings for everyone who has selected 10000,10000?
The user preference is stored as an offset in the database. The only way to fix this without a schema change and without breaking any existing user preferences seems to add new options at the bottom.
The following should work, but it's ugly (because it isn't sorted by size).

array (

array(320,240),
array(640,480),
array(800,480),
array(800,600),
array(1024,600),
array(1024,768),
array(1280,800),
array(10000,10000),
array(1280,1024),
array(1440x900),
array(1680x1050)
)

A nice fix would require a different way of storing this preference in the database.

giusca wrote:

I propose that the HD resolution (1920×1080) to be added as a default download resolution, as that's a common resolution for all kinds of displays.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.
Krinkle closed this task as Resolved.EditedMay 22 2026, 2:12 PM
Krinkle claimed this task.
Krinkle added subscribers: hashar, Krinkle.

Brief history:

The default remained as follows for a while (src)

$wgImageLimits = array(
	array( 320, 240 ),
	array( 640, 480 ),
	array( 800, 600 ),
	array( 1024, 768 ),
	array( 1280, 1024 )
);
	public const ImageLimits = [
		'default' => [
			[ 320, 240 ],
			[ 640, 480 ],
			[ 800, 600 ],
			[ 1024, 768 ],
			[ 1280, 1024 ],
			[ 2560, 2048 ],

This task was asking for 1440px and 1680px at a time where 1280px was the largest (10K was unavailable for most files because we don't upscale, and it was removed in 2012). We have added 2560x2048 which should satisfy the needs of 2008 "widescreen monitors".

However, it's now 20 years later, so is that still enough for modern displays? Back in 2008, I used a 17-inch PowerBook with a 1680×1050 display. Today, I currently use a 15-inch MacBook, but it's a HiDPI 2880×1864 screen.

Thanks to MediaWiki thumbnail steps (T414805), as of last year, the 2560px option was expanded to a 3840px file. You can browse File:Motorcyclist_in_Midtown_Manhattan on Wikimedia Commons as an example.

That size seems enough to close this task. Note that there is a bug in the interface causing the label to read "2560" while linking to the "3840px" file. Fixing the link text is T401668.