Last modified: 2006-11-13 22:36:49 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 T9874, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7874 - Thumbnails limited by their height (and not width)
Thumbnails limited by their height (and not width)
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-11 16:33 UTC by Yug
Modified: 2006-11-13 22:36 UTC (History)
0 users

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


Attachments

Description Yug 2006-11-11 16:33:04 UTC
Some cases need a function to put the heigh of a serie of pics.
* See
http://commons.wikimedia.org/wiki/Category:CJK_stroke_order/Billion#Chinese_characters
this case need every pic with the same height.

I propose a convention such :
[[Image:男-bw.png|130px]] => 130px => width="130px"
[[Image:男-bw.png|px130]] => px130 => height="130px

this may be easely added to mediawiki.
Comment 1 Rob Church 2006-11-11 16:35:39 UTC
You can request than an image be rendered to fit into, e.g. a 200x200 pixel
square using the following:

[[Image:Larousse.jpg|200x200px|left]] etc.
Comment 2 Yug 2006-11-12 16:31:13 UTC
This way <b>doesn't work</b> for series of pics which need to show the same
height, but a variable width.

Some series need to put a definited height, but a free width. A new syntaxe such
as :
[[Image:男-bw.png|px130]] => px130 => height="130px" ; width="free"
is what such case need.
Comment 3 Rob Church 2006-11-12 16:54:45 UTC
The thumbnail should be scaled such that the requisite box size is used,
maintaining the aspect ratio. You can also use a gallery if you need to display
multiple images.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-12 18:58:21 UTC
"px130" seems pretty counterintuitive to me.  "130high" looks silly but at least
is understandable.  Any other suggestions?
Comment 5 Rob Church 2006-11-12 19:01:14 UTC
Simetrical, we already have syntax which does this.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-12 19:08:48 UTC
Which is what?  I guess you could say [[Image:男-bw.png|1000000x130px]],
actually, but that's kind of hackish.
Comment 7 Yug 2006-11-12 19:18:20 UTC
With a serie of test (see link), I seen no syntaxe working fine. No syntaxe
fix/lock the height, and the width free.
* http://commons.wikimedia.org/wiki/Template_talk:Radical - serie of test.

What is the syntaxe for which both [[Image:贵-bw.png|yoursyntaxe]] and [[Image:
十-bw.png|yoursyntaxe]] will show the same height ?
Comment 8 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-12 19:26:22 UTC
[[Image:贵-bw.png|1000000x20px]] [[Image:十-bw.png|1000000x20px]]

Just it's hackish and a cleaner syntax would be nice.
Comment 9 Yug 2006-11-12 19:37:08 UTC
1000000x20px work fine ( http://commons.wikimedia.org/wiki/Template_talk:Radical
see in the end). Many thanks Simetrical !

I also think that a more convenient syntax is need. I proposed 
* [[Image:男-bw.png|130px]] => 130px => width="130px"
* [[Image:男-bw.png|px130]] => px130 => height="130px
because it's ...symetrical. px130, for the height, being the exact opposite of
130px, for the width.
That a proposition.

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


Navigation
Links