Last modified: 2011-03-13 18:04:46 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 T17636, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15636 - feature request: set thumbnail size as percentage of default size
feature request: set thumbnail size as percentage of default size
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.14.x
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-18 14:20 UTC by Gerardo Ballabio
Modified: 2011-03-13 18:04 UTC (History)
1 user (show)

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


Attachments

Description Gerardo Ballabio 2008-09-18 14:20:36 UTC
Request:
let thumbnail size be specified as a percentage of the default size, as set in the user preference settings.

Example: [[Image:xxx.jpg|thumb|150%]]
If a user has set a default thumbnail size of 180px, he should see this image at 270px; if he has set 250px, he should see it at 375px; and so on.

Rationale:
currently one can set a default thumbnail size in the user preference settings, but if any thumbnail is set to a different size, the user setting is overridden. And you can only specify thumbnail size in absolute units (number of pixels). When you do that, somebody is going to dislike it -- some have a high screen resolution, some have it low; some like big images, some like them small. And rendering ALL thumbnails at the default size isn't an option: for example, images with an extreme height/width ratio don't really fit well.

There should be a way to specify thumbnail size in relative units. I initially thought one should be able to specify it as a percentage of screen estate, but was told it isn't possible because images are rescaled server-side to save bandwidth. So I thought that a percentage of the default thumbnail should be used instead. This can be computed server-side and also works for users who want a larger or smaller size for reasons not related to screen resolution (e.g., visually impaired users).

I suppose that this feature can be implemented quite easily. It basically just takes to parse for "%" as well as for "px" and multiply by the preference value.
Comment 1 Guillaume Paumier 2009-12-31 18:09:17 UTC
(In reply to comment #0)
>
> let thumbnail size be specified as a percentage of the default size, as set in
> the user preference settings.

(snip)

> currently one can set a default thumbnail size in the user preference settings,
> but if any thumbnail is set to a different size, the user setting is
> overridden. And you can only specify thumbnail size in absolute units (number
> of pixels).

Specifying thumbnail size in absolute units is a terrible practice. Although it is technically possible (and for now the only way to display diagrams at a readable size with a caption), this feature has been consistently abused. I don't think we should implement another similar feature that allows editors to specify non-standard, inconsistent thumb sizes.

> And rendering ALL thumbnails at the default size isn't an option: for
> example, images with an extreme height/width ratio don't really fit well.

This is the reason why we have the "upright" parameter.

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


Navigation
Links