Difference between revisions of "H2w"

From Sega Retro

(Created page with "<includeonly>{{#expr: {{#mediawidth:{{{1}}}}}*({{{2}}} div {{#mediaheight:{{{1}}}}}) }}</includeonly><noinclude> This template obtains the width of a resized image, given that...")
(No difference)

Revision as of 15:22, 7 February 2015

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

Example

{{h2w|GoldenAxe Title.png|224}} returns 320

{{h2w|GoldenAxe Title.png|112}} returns 160

{{h2w|GoldenAxe Title.png|97}} returns 138.57142857143