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, -> 16, 72
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
- 192x144 -> 1.2, -> 16, 72
"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, -> -32, 240
- 352x224
- 298.66666666667x224 -> 0.84848484848486, -> -26.666666666665, 112
- 704x448
- 597.33333333333x448 -> 0.84848484848484, -> -53.333333333335, 224
- 704x448
- 597.33333333333x448 -> 0.84848484848484, -> -53.333333333335, 224
Anamorphic widescreen
- 320x224
- 398.22222222222x224 -> 1.2444444444444, -> 39.11111111111, 112
- 320x240
- 426.66666666667x240 -> 1.3333333333333, -> 53.333333333335, 120
- 320x240
- 426.66666666667x240 -> 1.3333333333333, -> 53.333333333335, 120
- 320x240
- 426.66666666667x240 -> 1.3333333333333, -> 53.333333333335, 120
TODO: Get width parameter to work properly here.