Difference between revisions of "Bobscreen"
From Sega Retro
(37 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#if:{{{noresize|}}}|[[File:{{{1|}}}{{#if:{{{width|}}}{{{height|}}}|{{!}}}}{{#if:{{{width|}}}|{{{width|}}}}}{{#if:{{{height|}}}|x{{{height|}}}}}{{#if:{{{width|}}}{{{height|}}}|px}}]]|{{let|imagedim={{#replace:{{#mediadimensions:{{{1|}}}}}|,|}}}}{{let|imagew={{#explode:{{#var:imagedim}}|×|0}}|imageh={{#explode:{{#var:imagedim}}|×|1}}}} |
− | | | + | {{let|bsparams={{#switch:{{#var:imagedim}} |
− | | | + | <!--thumbnail width, display width, display height, crop (1=no, 2=show left half only)--> |
− | | | + | | 48 × 32 = 48,48,32,1 <!--VMU--> |
− | | | + | | 256 × 192 = 256,{{#switch:{{{smsgg|}}}|yes=192,144|256,192}},1 <!--Master System--> |
− | | | + | | 248 × 192 = 248,248,192,1 <!--Master System (cropped)--> |
− | | | + | | 512 × 192 = 512,512,192,2 <!--Master System 3D--> |
− | | | + | | 496 × 192 = 496,496,192,2 <!--Master System 3D (cropped)--> |
− | | | + | | 256 × 224 = 256,320,224,1 <!--Mega Drive--> |
− | | | + | | 256 × 448 = 256,320,224,1 <!--Mega Drive interlaced--> |
− | | | + | | 256 × 240 = 256,320,240,1 <!--Mega Drive PAL; X68000--> |
− | | | + | | 640 × 480 |
− | | | + | | 320 × 240 |
− | | | + | | 640 × 240 <!-- Dreamcast; half res --> |
− | + | | 320 × 480 = 320,320,240,1 <!--Mega Drive PAL interlaced--> | |
− | | | + | | 160 × 144 = 160,192,144,1 <!--Game Gear--> |
− | | | + | | 352 × 224 |
− | + | | 704 × 448 = 352,320,224,1 <!--Saturn--> | |
− | | 224 | + | | 704 × 224 = 704,320,224,1 |
− | | | + | | 352 × 240 |
− | | | + | | 352 × 480 |
− | | | + | | 352 × 256 |
− | | | + | | 704 × 480 = 352,320,240,1 <!--Saturn PAL--> |
− | | | + | | 704 × 240 = 704,320,240,1 |
− | | 224 × | + | | 224 × 224 = 224,320,224,1 <!--Bank Panic--> |
− | | | + | | 240 × 224 = 240,320,224,1 <!--Super Locomotive--> |
− | | | + | | 288 × 224 = 288,288,224,1 <!--Flashgal, appears to use square pixels.--> |
− | | | + | | 384 × 496 = 384,224,320,1 <!--Vertical arcade (e.g. Gain Ground)--> |
− | | | + | | 384 × 224 = 384,320,224,1 <!-- Capcom arcade --> |
− | | | + | | 416 × 224 = 416,320,224,1 <!-- Burning Rival --> |
− | | | + | | 224 × 320 = 224,224,320,1 <!--Vertical arcade (e.g. Time Scanner)--> |
− | | | + | | 224 × 256 = 224,224,320,1 <!--Vertical arcade (e.g. Deep Scan)--> |
− | | | + | | 240 × 256 = 240,240,320,1 <!--Vertical arcade (e.g. Angel Kids)--> |
− | | | + | | 208 × 256 = 208,208,277,1 <!--Vertical arcade (e.g. Bull Fighter)--> |
− | | | + | | 224 × 240 = 224,224,320,1 <!--Vertical arcade (e.g. Water Match)--> |
− | | | + | | 480 × 640 = 240,240,320,1 <!--Vertical arcade (e.g. Ikaruga)--> |
− | | | + | | 512 × 480 = 320,320,240,1 <!--Astron Belt--> |
− | | | + | | 224 × 288 = 224,224,288,1 <!--Pengo, square pixels.--> |
− | | | + | | 496 × 384 = 320,320,240,1 <!--Model 1/2 (e.g. Virtua Fighter)--> |
− | | | + | | 400 × 254 = 400,320,240,1 <!-- Midway arcade --> |
− | + | | 248 × 224 = 248,320,224,1 <!-- PC Engine --> | |
− | + | | 512 × 239 = 512,320,239,1 <!--SNES--> | |
− | | 496 × | + | | 512 × 478 |
− | | | + | | 256 × 239 = 256,320,239,1 <!--NES/SNES--> |
− | + | | 512 × 224 = 512,320,224,1 <!--SNES--> | |
− | + | | 512 × 448 = 320,320,224,1 <!--SNES; PlayStation 2--> | |
− | + | | 240 × 160 = 240,240,160,1 <!--GBA--> | |
− | | | + | | 256 × 384 = 256,256,384,1 <!--Nintendo DS--> |
− | | | + | | 400 × 480 = 320,320,384,1 <!--Nintendo 3DS--> |
− | + | | 400 × 240 = 320,320,192,1 <!--Nintendo 3DS, top--> | |
+ | <!--| 800 × 480 = 640,640,384,2 Nintendo 3DS 3D--> | ||
+ | | 480 × 272 = 320,320,181,1 <!--PlayStation Portable--> | ||
+ | | 960 × 544 = 320,320,181,1 <!--PlayStation Vita--> | ||
+ | | 800 × 480 = 320,320,192,1 <!--Android--> | ||
+ | | 480 × 800 = 240,240,400,1 <!--Android; vertical--> | ||
+ | | 1792 × 828 = 320,320,147.857,1 <!--iOS --> | ||
+ | | 160 × 152 = 160,160,152,1 <!--NGPC--> | ||
+ | | 160 × 102 = 160,160,102,1 <!-- Lynx --> | ||
+ | | 256 × 212 = 256,283,212,1 <!-- MSX2 --> | ||
+ | | 320 × 256 = 320,320,240,1 <!-- Amiga --> | ||
+ | | 304 × 224 = 304,320,224,1 <!-- Amiga --> | ||
+ | | 352 × 200 = 352,320,240,1 <!-- Amiga --> | ||
+ | | 320 × 199 | ||
+ | | 320 × 208 | ||
+ | | 320 × 192 = 320,320,240,1 <!-- Amiga --> | ||
+ | | 312 × 192 = 312,312,234,1 <!-- Amiga --> | ||
+ | | 256 × 232 = 256,309,232,1 <!--X68000--> | ||
+ | | 320 × 200 | ||
+ | | 640 × 400 | ||
+ | | 640 × 350 = 320,320,240,1 <!--IBM PC--> | ||
+ | | 640 × 300 | ||
+ | | 720 × 348 = 320,320,240,1 <!--IBM PC (Hercules)--> | ||
+ | | 336 × 240 = 336,320,240,1 <!-- Atari 8-bit --> | ||
+ | | 352 × 184 = 352,320,240,1 <!-- VIC-20 --> | ||
+ | | 360 × 240 = 360,320,240,1 <!-- VIC-20 --> | ||
+ | | 360 × 230 = 360,320,240,1 <!-- PC-6001 --> | ||
+ | | 320 × 210 | ||
+ | | 320 × 214 = 320,320,240,1 <!-- Atari 2600 --> | ||
+ | | 280 × 192 = 280,280,210,1 <!-- Apple II --> | ||
+ | | 768 × 400 = 320,320,240,1 <!-- X68000 (Bonanza Bros.)--> | ||
+ | | 200 × 160 = 200,200,160,1 <!-- Game.com --> | ||
+ | | 176 × 208 = 176,176,208,1 <!-- N-Gage --> | ||
+ | | 128 × 128 = 128,128,128,1 <!-- Mobile --> | ||
+ | | 128 × 160 = 128,128,160,1 <!-- Mobile --> | ||
+ | | 176 × 220 = 176,176,220,1 <!-- Mobile --> | ||
+ | | 208 × 208 = 208,208,208,1 <!-- Mobile --> | ||
+ | | 240 × 400 = 240,240,400,1 <!-- Mobile --> | ||
+ | | 240 × 432 = 240,240,432,1 <!-- Mobile --> | ||
+ | | 352 × 416 = 240,240,283.6363,1 <!-- Mobile --> | ||
+ | | 360 × 640 = 240,240,426.6666,1 <!-- Mobile --> | ||
+ | | 640 × 360 = 320,320,180,1 <!-- Mobile --> | ||
+ | | 1280 × 720 | ||
+ | | 1920 × 1080 | ||
+ | | 2560 × 1440 | ||
+ | | 3840 × 2160 = 320,320,180,1 <!-- HD --> | ||
+ | | 720 × 1280 | ||
+ | | 1080 × 1920 | ||
+ | | 1440 × 2560 | ||
+ | | 2160 × 3840 = 320,180,320,1 <!--HD; vertical--> | ||
+ | | 320,320,224,1 <!--Default is Mega Drive NTSC--> | ||
+ | }}}}{{let | ||
+ | |thumbw={{#explode:{{#var:bsparams}}|,|0}} | ||
+ | |bsw={{#explode:{{#var:bsparams}}|,|{{#switch:{{{keepwidth|}}}|yes=0|1}}}} | ||
+ | |bsh={{#expr:{{#explode:{{#var:bsparams}}|,|2}}*{{#switch:{{{forcewidescreen|}}}|yes=0.8|1}}}} | ||
+ | |bsc={{#explode:{{#var:bsparams}}|,|3}} | ||
+ | }}{{getdim|actual={{#var:imagedim}}|w={{#var:thumbw}}|output=h|var=thumbh}}{{let | ||
+ | |scale={{#if:{{{width|}}}|{{#expr:{{{width|}}}/({{#var:bsw}}/{{#var:bsc}})}}|{{#if:{{{height|}}}|{{#expr:{{{height|}}}/({{#var:bsh}}/{{#var:bsc}})}}|1}}}} | ||
+ | |hscale={{#expr:{{#var:bsw}}/{{#var:thumbw}}}} | ||
+ | |vscale={{#expr:{{#var:bsh}}/{{#var:thumbh}}}} | ||
+ | }} | ||
+ | <div style="overflow:hidden; display:inline-block; | ||
+ | width:{{#expr:({{#var:bsw}}*{{#var:scale}})/{{#var:bsc}}}}px; | ||
+ | height:{{#expr:{{#var:bsh}}*{{#var:scale}}}}px; | ||
+ | "> | ||
+ | <div class="bobtransform" style="transform:scale({{#var:hscale}},{{#var:vscale}}); transform-origin:0% 0%; !important;"> | ||
+ | <div style="width:{{#expr:{{#var:thumbw}}*{{#var:scale}}}}px; height:{{#expr:{{#var:thumbh}}*{{#var:scale}}}}px;"> | ||
+ | [[File:{{{1|}}}|{{#expr:trunc({{#var:thumbw}}*{{#var:scale}})}}px|link={{{link|File:{{{1|}}}}}}]] | ||
+ | </div> | ||
+ | </div> | ||
+ | </div>}}</includeonly><noinclude> | ||
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio. | This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio. | ||
Line 67: | Line 137: | ||
{{bobscreen|MagicalPuzzlePopils title.png|width=120}} | {{bobscreen|MagicalPuzzlePopils title.png|width=120}} | ||
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | "width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not. | ||
+ | |||
+ | |||
+ | <tt><nowiki>{{bobscreen|SonicColours Wii EU Title.png|forcewidescreen=yes}}</nowiki></tt> | ||
+ | |||
+ | returns | ||
+ | {{bobscreen|SonicColours Wii EU Title.png|forcewidescreen=yes}} | ||
+ | "forcewidescreen" is useful for screenshots that rely on [[anamorphic widescreen]] to display a 4:3 image as a 16:9 image. | ||
==Examples== | ==Examples== | ||
Line 211: | Line 288: | ||
| [[File:AlienSyndrome X68 JP SSIngame.png]] | | [[File:AlienSyndrome X68 JP SSIngame.png]] | ||
| {{bobscreen|AlienSyndrome X68 JP SSIngame.png}} | | {{bobscreen|AlienSyndrome X68 JP SSIngame.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|LastBattle Amiga Title.png}}</nowiki> | ||
+ | | [[File:LastBattle Amiga Title.png]] | ||
+ | | {{bobscreen|LastBattle Amiga Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Doom SNES Title.png}}</nowiki> | ||
+ | | [[File:Doom SNES Title.png]] | ||
+ | | {{bobscreen|Doom SNES Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Flashback Amiga Title.png}}</nowiki> | ||
+ | | [[File:Flashback Amiga Title.png]] | ||
+ | | {{bobscreen|Flashback Amiga Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|GhoulsnGhosts Arcade Title.png}}</nowiki> | ||
+ | | [[File:GhoulsnGhosts Arcade Title.png]] | ||
+ | | {{bobscreen|GhoulsnGhosts Arcade Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|DarkCastle Amiga Title.png}}</nowiki> | ||
+ | | [[File:DarkCastle Amiga Title.png]] | ||
+ | | {{bobscreen|DarkCastle Amiga Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Lemmings IBMPC EGA Title.png}}</nowiki> | ||
+ | | [[File:Lemmings IBMPC EGA Title.png]] | ||
+ | | {{bobscreen|Lemmings IBMPC EGA Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|MortalKombat Arcade Title.png}}</nowiki> | ||
+ | | [[File:MortalKombat Arcade Title.png]] | ||
+ | | {{bobscreen|MortalKombat Arcade Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|BurningRival title.png}}</nowiki> | ||
+ | | [[File:BurningRival title.png]] | ||
+ | | {{bobscreen|BurningRival title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|VirtuaRacing Model1 US WDUD Widescreen.png|forcewidescreen=yes|height=240}}</nowiki> | ||
+ | | [[File:VirtuaRacing Model1 US WDUD Widescreen.png]] | ||
+ | | {{bobscreen|VirtuaRacing Model1 US WDUD Widescreen.png|forcewidescreen=yes|height=240}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|LostVikings Amiga Title.png}}</nowiki> | ||
+ | | [[File:LostVikings Amiga Title.png]] | ||
+ | | {{bobscreen|LostVikings Amiga Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Ikaruga title1.png|link=Ikaruga}}</nowiki> | ||
+ | | [[File:Ikaruga title1.png]] | ||
+ | | {{bobscreen|Ikaruga title1.png|link=Ikaruga}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes|width=200}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes|width=200}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ComixZone PC Cheat.png|noresize=yes|height=200}}</nowiki> | ||
+ | | [[File:ComixZone PC Cheat.png]] | ||
+ | | {{bobscreen|ComixZone PC Cheat.png|noresize=yes|height=200}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|SegaRally Saturn EU Title.png}}</nowiki> | ||
+ | | [[File:SegaRally Saturn EU Title.png]] | ||
+ | | {{bobscreen|SegaRally Saturn EU Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|TimeScanner Title.png}}</nowiki> | ||
+ | | [[File:TimeScanner Title.png]] | ||
+ | | {{bobscreen|TimeScanner Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|PuyoPuyoNarabe title.jpg}}</nowiki> | ||
+ | | [[File:PuyoPuyoNarabe title.jpg]] | ||
+ | | {{bobscreen|PuyoPuyoNarabe title.jpg}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Crazy Taxi Gazillionaire title screen.png}}</nowiki> | ||
+ | | [[File:Crazy Taxi Gazillionaire title screen.png|320px]] | ||
+ | | {{bobscreen|Crazy Taxi Gazillionaire title screen.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Phantasy Star Classics title.png}}</nowiki> | ||
+ | | [[File:Phantasy Star Classics title.png|320px]] | ||
+ | | {{bobscreen|Phantasy Star Classics title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|SonicAdvance Android title.png}}</nowiki> | ||
+ | | [[File:SonicAdvance Android title.png|320px]] | ||
+ | | {{bobscreen|SonicAdvance Android title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|M&SatL2012OG 3DS USEU Title.png}}</nowiki> | ||
+ | | [[File:M&SatL2012OG 3DS USEU Title.png|320px]] | ||
+ | | {{bobscreen|M&SatL2012OG 3DS USEU Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Paperboy Lynx title.png}}</nowiki> | ||
+ | | [[File:Paperboy Lynx title.png]] | ||
+ | | {{bobscreen|Paperboy Lynx title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|StreetFighterAlpha3 DC EU Title.png}}</nowiki> | ||
+ | | [[File:StreetFighterAlpha3 DC EU Title.png|320px]] | ||
+ | | {{bobscreen|StreetFighterAlpha3 DC EU Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ZeroDivide Saturn JP NecoTataki971.png}}</nowiki> | ||
+ | | [[File:ZeroDivide Saturn JP NecoTataki971.png|320px]] | ||
+ | | {{bobscreen|ZeroDivide Saturn JP NecoTataki971.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|3DFantasyZoneII 3DS LinkLoopLandGameplay.png}}</nowiki> | ||
+ | | [[File:3DFantasyZoneII 3DS LinkLoopLandGameplay.png|320px]] | ||
+ | | {{bobscreen|3DFantasyZoneII 3DS LinkLoopLandGameplay.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|VMU title.png}}</nowiki> | ||
+ | | [[File:VMU title.png]] | ||
+ | | {{bobscreen|VMU title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|SonicUnleashed J2ME 176x220 Title.png}}</nowiki> | ||
+ | | [[File:SonicUnleashed J2ME 176x220 Title.png]] | ||
+ | | {{bobscreen|SonicUnleashed J2ME 176x220 Title.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|Sonic Unleashed nokia 5800.png}}</nowiki> | ||
+ | | [[File:Sonic Unleashed nokia 5800.png|320px]] | ||
+ | | {{bobscreen|Sonic Unleashed nokia 5800.png}} | ||
+ | |- | ||
+ | | <nowiki>{{bobscreen|ValisIII MD U interlacedvideo.png}}</nowiki> | ||
+ | | [[File:ValisIII MD U interlacedvideo.png|320px]] | ||
+ | | {{bobscreen|ValisIII MD U interlacedvideo.png}} | ||
|} | |} | ||
[[Category:Breakout box templates]] | [[Category:Breakout box templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:42, 16 September 2024
This template sets the maximum width of a screenshot to 320 pixels, and corrects its aspect ratio.
Usage
{{bobscreen|MagicalPuzzlePopils title.png}}
returns
This is how the game appears on an actual Sega Game Gear. The original image taken from an emulator is below:
Options
{{bobscreen|MagicalPuzzlePopils title.png|width=120}}
returns
"width" also takes into account the adjusted aspect ratio, so the image appears 120 pixels wide even if the source image is not.
{{bobscreen|SonicColours Wii EU Title.png|forcewidescreen=yes}}
returns
"forcewidescreen" is useful for screenshots that rely on anamorphic widescreen to display a 4:3 image as a 16:9 image.