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
MagicalPuzzlePopils title.png

This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:

MagicalPuzzlePopils title.png

Options

{{bobscreenTest|MagicalPuzzlePopils title.png|width=120}}

returns












  • 120:160 -> 0.75, 1.1111111111111
MagicalPuzzlePopils title.png

"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:

WinterHeat title.png ->












  • 320:240 -> 0.45454545454545, 0.5
WinterHeat title.png


ClockworkKnightUSPAL Title.png ->












  • 320:240 -> 0.90909090909091, 1.0714285714286
ClockworkKnightUSPAL Title.png


NiGHTS title.png ->

NiGHTS title.png

Anamorphic widescreen

VirtuaFighter 32X Widescreen2.png ->












  • 426.66666666667:240 -> 1.3333333333333, 1.0714285714286
VirtuaFighter 32X Widescreen2.png


VirtuaFighter 32X Widescreen2 PAL.png ->












  • 426.66666666667:240 -> 1.3333333333333, 1
VirtuaFighter 32X Widescreen2 PAL.png


w200 VirtuaFighter 32X Widescreen2 PAL.png ->












  • 200:240 -> 0.625, 1
VirtuaFighter 32X Widescreen2 PAL.png


h200 VirtuaFighter 32X Widescreen2 PAL.png ->












  • 426.66666666667:200 -> 1.3333333333333, 0.83333333333333
VirtuaFighter 32X Widescreen2 PAL.png

TODO: Get width parameter to work properly here.