Last modified: 2014-06-04 20:50:29 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 T15802, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13802 - Add magic word to specify thumbnail width in category
Add magic word to specify thumbnail width in category
Status: NEW
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 22267 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-20 18:26 UTC by Matthew Flaschen
Modified: 2014-06-04 20:50 UTC (History)
6 users (show)

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


Attachments

Description Matthew Flaschen 2008-04-20 18:26:51 UTC
There should be a __PANORAMA__ (or __LANDSCAPE__, whatever) magic word specifying that a category contains very wide images.  This would then allow MediaWiki to optimize display.  Instead of say 6 images per line with thumbnail dimensions "120 x 35", it would have one thumbnail per line, perhaps "800 x 235".

It might be better to allow specifying the exact thumbnail size for a given cat, but that's not at all necessary.
Comment 1 Pure Core 2008-04-20 19:50:19 UTC
The bug was initially reported at: http://commons.wikimedia.org/wiki/Commons:Village_pump#Panoramic_Thumbnails.  

A copy of what was reported is listed below:

Recently I’ve become interested in taking Panoramic images, so decided to navigate to Category:Panoramic to pick up inspiration from other peoples panoramic images.

Unfortunately when I got there all that greeted me was rows of tiny thumbnails, some only 3 pixels high (e.g. the thumbnail of 2005-10-25_Doerflingen.jpg this can be viewed here: [[13]]) which made identifying an interesting panoramic image a little hard.

I navigated through some of the panoramic categories and the same problem prevailed, until I came to Commons:Featured pictures/Places/Panoramas, in which 1 panoramic thumbnail is set to 1 line. This makes viewing a panoramic image thumbnail incredibly easy. I understand that what I’m about to suggest may not be easy to implement, but would it be possible to change the code of the wiki so that when an image thumbnail is over a set aspect ratio then it is increased in size, or at least any categories which have been identified as mainly containing panoramic images be set to the same format as Commons:Featured pictures/Places/Panoramas?--PureCore 17:48, 19 April 2008 (UTC)

Comment 2 Bryan Tong Minh 2008-04-20 20:01:05 UTC
A magic word to arbitrarily specify the gallery width might be a better option. {{GALLERYWIDTH:xyz}}
Comment 3 Matthew Flaschen 2008-04-20 21:31:45 UTC
I agree, Bryan, but as I said that would be harder to implement and could come later.
Comment 4 Pure Core 2008-04-21 15:36:45 UTC
Could an option be created for users to increase or decrease thumbnail sizes, so they could adjust them to their own preference? I know in the preferences section - when logged in ( http://commons.wikimedia.org/wiki/Special:Preferences ) under "Files", it is possible to increase or decrease the size of thumbnails, but I've just been playing with it and haven't had much success in getting it working.  Perhaps if larger thumbnail sizes where added to this section (and I could figure out how to get it working) then this problem could be solved via that route (however if you didn't have an account you would still have the problem, unless this feature was extended to none logged in users).
Comment 5 brianna.laugher 2008-04-27 12:48:13 UTC
(In reply to comment #4)
> Could an option be created for users to increase or decrease thumbnail sizes,
> so they could adjust them to their own preference? 

This is about only changing the thumbnail width on particular categories, not all.
Comment 6 Siebrand Mazeland 2008-08-18 19:07:56 UTC
Summary: "Add __PANORAMA__ magic word, to specify category contains very wide images" -> "Add magic word to specify thumbnail width in category"
Comment 7 Raimond Spekking 2010-01-25 20:00:12 UTC
*** Bug 22267 has been marked as a duplicate of this bug. ***
Comment 9 User:Docu 2012-06-23 07:45:26 UTC
Seems still a good idea
Comment 10 C. Scott Ananian 2014-05-29 20:14:59 UTC
Alternatively, something like the image option suggested in bug 35756 would at least avoid the "3 pixel tall" problem.

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


Navigation
Links