Page MenuHomePhabricator

Inserting images by height in templates
Closed, DeclinedPublic

Description

Author: neptunia

Description:
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.


Version: unspecified
Severity: normal
Platform: PC

Details

Reference
bz4885

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:05 PM
bzimport set Reference to bz4885.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

You can use [[Image:Foo.png|20px20px|...]] which forces the image to fit into a
20px. square.

  • Bug 4884 has been marked as a duplicate of this bug. ***

neptunia wrote:

It simply doesent work. :-(

Examples and descriptions of _how_ it doesn't work?

neptunia wrote:

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

"100px100px" doesn't work; it's "100x100px".

robchur wrote:

Whoops, slip of the fingers. Damn pixels.

neptunia wrote:

And why if dimentions stated as 500x100px, jpg file has height 100 but png file becomes height 99?

robchur wrote:

To maintain the aspect ratio of the image.