BobscreenTest
From Sega Retro
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
Usage
{{bobscreen|MagicalPuzzlePopils title.png}}
returns
- 160x144
- 192x144 -> 1.2,
This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:
Options
{{bobscreenTest|MagicalPuzzlePopils title.png|width=120}}
returns
- 160x144
- 120x90 -> 0.75,
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not.
Height
In addition, this template corrects heights:
- 704x480
- 640x480 -> 0.90909090909091,
- 352x224
- 298.66666666667x224 -> 0.84848484848486,
- 704x448
- 597.33333333333x448 -> 0.84848484848484,
- 704x448
- 320x240 -> 0.45454545454545,
Anamorphic widescreen
- 320x224
- 398.22222222222x224 -> 1.2444444444444,
- 320x240
- 426.66666666667x240 -> 1.3333333333333,
- 320x240
- 200x112.5 -> 0.625,
- 320x240
- 355.55555555556x200 -> 1.1111111111111,
TODO: Get width parameter to work properly here.