Difference between revisions of "W2h"
From NEC Retro
Ccawley2011 (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: ({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) | + | <includeonly>{{#expr: floor({{#mediaheight:{{{1}}}}}*({{{2}}} div {{#mediawidth:{{{1}}}}})) }}</includeonly><noinclude> |
This template obtains the height of a resized image, given that its width is known. | This template obtains the height of a resized image, given that its width is known. | ||
Revision as of 16:17, 31 December 2021
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 67