Last modified: 2011-03-13 18:05:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17054, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15054 - Implementing "bigger" and "smaller" parameters for images will allow flexibility without overruling default thumb size preferences.
Implementing "bigger" and "smaller" parameters for images will allow flexibil...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-06 03:32 UTC by Hesperian
Modified: 2011-03-13 18:05 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Hesperian 2008-08-06 03:32:22 UTC
Currently on the English Wikipedia, and I imagine on a great many other WikiMedia wikis, there is a constant tension between respecting user thumb size preferences, and specifying an appropriate size for images.

Routinely overruling default thumb size preferences is problematic because:
# Users who have explicitly specified a small default because of low screen resolution or low network bandwidth, are served large images against their will;
# Specifying a larger image for users with a small default, can result in a smaller image for users who have explicitly set a large default; for example, if someone decides that the 180px is too small for a lead image, and sets the image to 240px, users with a thumb size of 300px end up being served a lead image smaller than the default!
# From a server load point of view, it is much better to be serving images at a few standard thumb sizes, as this means more efficient use of the image cache and less on-the-fly scaling.

On the other hand, always honouring thumb size preferences is undesirable because:
# Some images need to be made larger in order to show critical detail;
# Images with extreme aspect values can look unacceptable small or large, and there needs to be a way to overrule that;

There is a solution: enhance the image syntax to support keywords "bigger" and "smaller", which would bump the image size up (resp. down) by one default thumb size option. That is, since the default thumb sizes on the English Wikipedia are currently 120px, 150px, 180px, 200px, 250px and 300px, specifying "bigger" will cause an image to be displayed at 200px for those with a default thumb size of 180px; at 250px for those with a default thumb size of 200px; etc.

Providing this option would allow flexibility in setting image size, while still respecting user settings. It would, I believe, result in much more prevalent display of images at the standard thumb sizes (together with the two edge cases: "smaller" on a 120px default; and "larger" on a 300px default"). The result for the servers should be much more efficient image caching.

In order to ensure that the effect of "bigger" and "smaller" is fairly consistent across all default thumb sizes, there needs to be a constant(ish) ratio between adjacent thumb sizes. The simplest way to do this is to set the 120px "smaller" to 100px, drop the 150px default to 145px, drop the 180px default to 175px, increase the 200px default to 210px, and set the 300px "bigger" to 360px. This would result in the following set of thumb sizes: {100px, 120px, 145px, 175px, 210px, 250px, 300px, 360px}, which very nearly represents a constant ratio of 1.2.
Comment 1 Eugene Zelenko 2008-08-06 18:07:18 UTC
See also bug 2581.
Comment 2 Raimond Spekking 2009-02-16 09:00:40 UTC
WONTFIX this bug because the requested feature can be handled by with "upright" parameter:

[[Image:name.jpg|thumb|upright|description]] = automatically reduced to 75% of the  user preferenced image width
[[Image:name.jpg|thumb|upright=1.2|description]] = automatically increased to 120% of the  user preferenced image width
[[Image:name.jpg|thumb|upright=0.5|description]] = automatically reduced to 50% of the  user preferenced image width

This is far more flexible than "smaller" or "bigger" keywords.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links