Last modified: 2006-02-07 15:38:24 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 T6885, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4885 - Inserting images by height in templates
Inserting images by height in templates
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
PC All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 4884 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-05 23:34 UTC by Ilya
Modified: 2006-02-07 15:38 UTC (History)
0 users

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


Attachments

Description Ilya 2006-02-05 23:34:36 UTC
Hi! Could anybody please solve this problem: there is no possibility to insert an image with certain height in pixels. This causes problems 
when creating templates for cities/countries/regions with their own coats of arms and flags. Since most of coats of arms have different 
width, the images are depicted with different scales. If would much better if there was possibility to limit the size of image not only by 
width, but also by height.
Comment 1 Rob Church 2006-02-05 23:35:56 UTC
You can use [[Image:Foo.png|20px20px|...]] which forces the image to fit into a
20px. square.
Comment 2 Brion Vibber 2006-02-05 23:40:28 UTC
*** Bug 4884 has been marked as a duplicate of this bug. ***
Comment 3 Ilya 2006-02-05 23:46:53 UTC
It simply doesent work. :-(
Comment 4 Brion Vibber 2006-02-06 06:57:49 UTC
Examples and descriptions of _how_ it doesn't work?
Comment 5 Ilya 2006-02-06 12:47:22 UTC
For example, heere: http://ru.wikipedia.org/wiki/%D0%9C%D1%83%D0%BD%D0%B8%D1%86%D0%B8%D0%BF%D0%B0%D0%BB%
D1%8C%D0%BD%D1%8B%D0%B9_%D0%BE%D0%BA%D1%80%D1%83%D0%B3_%D0%A1%D0%B0%D0%B2%D1%91%D0%BB%
D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9 The coat of arms is 100x126 while in the template there is 100px100px
Comment 6 Ilya 2006-02-06 17:06:56 UTC
Here is the test image:

http://ru.wikipedia.org/wiki/User:Nxx/test
Comment 7 Brion Vibber 2006-02-06 21:13:32 UTC
"100px100px" doesn't work; it's "100x100px".
Comment 8 Rob Church 2006-02-06 22:19:45 UTC
Whoops, slip of the fingers. Damn pixels.
Comment 9 Ilya 2006-02-07 06:09:25 UTC
Thank you.
Comment 10 Ilya 2006-02-07 14:51:12 UTC
And why if dimentions stated as 500x100px, jpg file has height 100 but png file becomes height 99?
Comment 11 Rob Church 2006-02-07 15:38:24 UTC
To maintain the aspect ratio of the image.

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


Navigation
Links