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
This commit is contained in:
Pieter-Jan Briers
2024-02-17 00:55:57 +01:00
committed by GitHub
parent 9e5261e2ce
commit 773d02f694
28 changed files with 17 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ public sealed partial class GameTicker
[ViewVariables] [ViewVariables]
private List<ResPath>? _lobbyBackgrounds; 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() private void InitializeLobbyBackground()
{ {

View File

@@ -1,31 +1,31 @@
- type: lobbyBackground - type: lobbyBackground
id: Robotics id: Robotics
background: /Textures/LobbyScreens/robotics.png background: /Textures/LobbyScreens/robotics.webp
- type: lobbyBackground - type: lobbyBackground
id: Supermatter id: Supermatter
background: /Textures/LobbyScreens/supermatter.png background: /Textures/LobbyScreens/supermatter.webp
- type: lobbyBackground - type: lobbyBackground
id: Warden id: Warden
background: /Textures/LobbyScreens/warden.png background: /Textures/LobbyScreens/warden.webp
- type: lobbyBackground - type: lobbyBackground
id: Pharmacy id: Pharmacy
background: /Textures/LobbyScreens/pharmacy.png background: /Textures/LobbyScreens/pharmacy.webp
- type: lobbyBackground - type: lobbyBackground
id: SSXIV id: SSXIV
background: /Textures/LobbyScreens/ssxiv.png background: /Textures/LobbyScreens/ssxiv.webp
- type: lobbyBackground - type: lobbyBackground
id: Susstation id: Susstation
background: /Textures/LobbyScreens/susstation.png background: /Textures/LobbyScreens/susstation.webp
- type: lobbyBackground - type: lobbyBackground
id: SkellyVsTheRev id: SkellyVsTheRev
background: /Textures/LobbyScreens/skellyvstherev.png background: /Textures/LobbyScreens/skellyvstherev.webp
- type: lobbyBackground - type: lobbyBackground
id: Doomed id: Doomed
background: /Textures/LobbyScreens/doomed.png background: /Textures/LobbyScreens/doomed.webp

View File

@@ -1,2 +1,3 @@
Note: 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

View File

@@ -1,29 +1,29 @@
- files: ["supermatter.png", "robotics.png"] - files: ["supermatter.webp", "robotics.webp"]
license: "CC-BY-NC-SA-3.0" license: "CC-BY-NC-SA-3.0"
copyright: "Veritius#2351 (257233913951289344) on discord / @Veritius on GitHub" copyright: "Veritius#2351 (257233913951289344) on discord / @Veritius on GitHub"
source: "https://github.com/Veritius" source: "https://github.com/Veritius"
- files: ["warden.png", "pharmacy.png"] - files: ["warden.webp", "pharmacy.webp"]
license: "CC-BY-NC-SA-3.0" license: "CC-BY-NC-SA-3.0"
copyright: "Solbusaur#4343 (220208697429852160) on discord" copyright: "Solbusaur#4343 (220208697429852160) on discord"
source: "https://github.com/space-wizards/space-station-14" source: "https://github.com/space-wizards/space-station-14"
- files: ["ssxiv.png"] - files: ["ssxiv.webp"]
license: "CC-BY-NC-SA-3.0" license: "CC-BY-NC-SA-3.0"
copyright: "Abyssal#4842 on discord / @aby_doodles on Twitter" copyright: "Abyssal#4842 on discord / @aby_doodles on Twitter"
source: "https://twitter.com/aby_doodles" source: "https://twitter.com/aby_doodles"
- files: ["susstation.png"] - files: ["susstation.webp"]
license: "CC-BY-NC-SA-3.0" license: "CC-BY-NC-SA-3.0"
copyright: "Alekshhh github" copyright: "Alekshhh github"
source: "https://github.com/space-wizards/space-station-14" source: "https://github.com/space-wizards/space-station-14"
- files: ["skellyvstherev.png"] - files: ["skellyvstherev.webp"]
license: "CC-BY-SA-4.0" license: "CC-BY-SA-4.0"
copyright: "Hannah 'FairlySadPanda' Dawson 2024" copyright: "Hannah 'FairlySadPanda' Dawson 2024"
source: "https://github.com/FairlySadPanda" source: "https://github.com/FairlySadPanda"
- files: ["doomed.png"] - files: ["doomed.webp"]
license: "CC-BY-NC-SA-3.0" license: "CC-BY-NC-SA-3.0"
copyright: "brainfood1183 github" copyright: "brainfood1183 github"
source: "https://github.com/space-wizards/space-station-14" source: "https://github.com/space-wizards/space-station-14"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 794 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB