WebP lobby images (#25184)
* Allow webp in lobby background files * Make lobby art webp images Reduces folder from 10 MB to 2.5 MB without only slight quality loss. * Update PutLobbyScreensHere.txt
@@ -13,7 +13,7 @@ public sealed partial class GameTicker
|
||||
[ViewVariables]
|
||||
private List<ResPath>? _lobbyBackgrounds;
|
||||
|
||||
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg"};
|
||||
private static readonly string[] WhitelistedBackgroundExtensions = new string[] {"png", "jpg", "jpeg", "webp"};
|
||||
|
||||
private void InitializeLobbyBackground()
|
||||
{
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
- type: lobbyBackground
|
||||
id: Robotics
|
||||
background: /Textures/LobbyScreens/robotics.png
|
||||
background: /Textures/LobbyScreens/robotics.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: Supermatter
|
||||
background: /Textures/LobbyScreens/supermatter.png
|
||||
background: /Textures/LobbyScreens/supermatter.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: Warden
|
||||
background: /Textures/LobbyScreens/warden.png
|
||||
background: /Textures/LobbyScreens/warden.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: Pharmacy
|
||||
background: /Textures/LobbyScreens/pharmacy.png
|
||||
background: /Textures/LobbyScreens/pharmacy.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: SSXIV
|
||||
background: /Textures/LobbyScreens/ssxiv.png
|
||||
background: /Textures/LobbyScreens/ssxiv.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: Susstation
|
||||
background: /Textures/LobbyScreens/susstation.png
|
||||
background: /Textures/LobbyScreens/susstation.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: SkellyVsTheRev
|
||||
background: /Textures/LobbyScreens/skellyvstherev.png
|
||||
background: /Textures/LobbyScreens/skellyvstherev.webp
|
||||
|
||||
- type: lobbyBackground
|
||||
id: Doomed
|
||||
background: /Textures/LobbyScreens/doomed.png
|
||||
background: /Textures/LobbyScreens/doomed.webp
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
Note:
|
||||
Only png and jpgs files are supported, and you need a prototype in Resources/Prototypes/lobbyscreens.yml
|
||||
PNG, JPEG and WebP is supported. Please prefer a lossy WebP compression since lobby art is big.
|
||||
You also need to put a prototype in Resources/Prototypes/lobbyscreens.yml
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
- files: ["supermatter.png", "robotics.png"]
|
||||
- files: ["supermatter.webp", "robotics.webp"]
|
||||
license: "CC-BY-NC-SA-3.0"
|
||||
copyright: "Veritius#2351 (257233913951289344) on discord / @Veritius on GitHub"
|
||||
source: "https://github.com/Veritius"
|
||||
|
||||
- files: ["warden.png", "pharmacy.png"]
|
||||
- files: ["warden.webp", "pharmacy.webp"]
|
||||
license: "CC-BY-NC-SA-3.0"
|
||||
copyright: "Solbusaur#4343 (220208697429852160) on discord"
|
||||
source: "https://github.com/space-wizards/space-station-14"
|
||||
|
||||
- files: ["ssxiv.png"]
|
||||
- files: ["ssxiv.webp"]
|
||||
license: "CC-BY-NC-SA-3.0"
|
||||
copyright: "Abyssal#4842 on discord / @aby_doodles on Twitter"
|
||||
source: "https://twitter.com/aby_doodles"
|
||||
|
||||
- files: ["susstation.png"]
|
||||
- files: ["susstation.webp"]
|
||||
license: "CC-BY-NC-SA-3.0"
|
||||
copyright: "Alekshhh github"
|
||||
source: "https://github.com/space-wizards/space-station-14"
|
||||
|
||||
- files: ["skellyvstherev.png"]
|
||||
- files: ["skellyvstherev.webp"]
|
||||
license: "CC-BY-SA-4.0"
|
||||
copyright: "Hannah 'FairlySadPanda' Dawson 2024"
|
||||
source: "https://github.com/FairlySadPanda"
|
||||
|
||||
- files: ["doomed.png"]
|
||||
- files: ["doomed.webp"]
|
||||
license: "CC-BY-NC-SA-3.0"
|
||||
copyright: "brainfood1183 github"
|
||||
source: "https://github.com/space-wizards/space-station-14"
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 MiB |
BIN
Resources/Textures/LobbyScreens/doomed.webp
Normal file
|
After Width: | Height: | Size: 482 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
BIN
Resources/Textures/LobbyScreens/pharmacy.webp
Normal file
|
After Width: | Height: | Size: 531 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
BIN
Resources/Textures/LobbyScreens/robotics.webp
Normal file
|
After Width: | Height: | Size: 143 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
BIN
Resources/Textures/LobbyScreens/skellyvstherev.webp
Normal file
|
After Width: | Height: | Size: 474 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
BIN
Resources/Textures/LobbyScreens/ssxiv.webp
Normal file
|
After Width: | Height: | Size: 338 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
BIN
Resources/Textures/LobbyScreens/supermatter.webp
Normal file
|
After Width: | Height: | Size: 260 KiB |
|
Before Width: | Height: | Size: 794 KiB |
BIN
Resources/Textures/LobbyScreens/susstation.webp
Normal file
|
After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 235 KiB |
BIN
Resources/Textures/LobbyScreens/warden.webp
Normal file
|
After Width: | Height: | Size: 148 KiB |