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
- 213.33333333333:160 -> 1.3333333333333, 1.1111111111111
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
- 120:160 -> 0.75, 1.1111111111111
"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:
- 320:240 -> 0.45454545454545, 0.5
- 320:240 -> 0.90909090909091, 1.0714285714286
Anamorphic widescreen
- 426.66666666667:240 -> 1.3333333333333, 1.0714285714286
- 426.66666666667:240 -> 1.3333333333333, 1
- 200:240 -> 0.625, 1
- 426.66666666667:200 -> 1.3333333333333, 0.83333333333333
TODO: Get width parameter to work properly here.