Actions

Template

W2h

From Sonic Retro

Revision as of 18:14, 9 June 2015 by Hivebrain (talk | contribs) (Created page with "<includeonly>{{#expr: ({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) round 0 }}</includeonly><noinclude> This template obtains the height of a resized image,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template obtains the height of a resized image, given that its width is known.

Example

{{w2h|Sonic1 title.png|320}} returns 224

{{w2h|Sonic1 title.png|160}} returns 112

{{w2h|Sonic1 title.png|97}} returns 68