Skip to content

Use WEBP for map images & add missing TF2 maps - #1628

Merged
rumblefrog merged 4 commits into
sbpp:mainfrom
aarmastah:main
Nov 25, 2026
Merged

rumblefrog merged 4 commits into
sbpp:mainfrom
aarmastah:main

Conversation

@aarmastah

Copy link
Copy Markdown
Contributor

Description

WEBP can provide more image quality and better compression than jpeg, so I re-compressed all the existing map images in webp and added my own screenshots of all the missing TF2 maps added over the years. Before, there were 300 map screenshots and they took up 7.31 megabytes in total. Now, there are 526 screenshots and they take up 8.23 megabytes. A <1 megabyte increase for 226 more maps.

If you're concerned about the increase in file size, you can remove the additional maps and save lots of space. The base 300 maps take up 4.12 megabytes in WEBP at quality 90.

Motivation and Context

The map list hasn't been updated in the past 9 years and could absolutely use an update, especially for a game like TF2 that regularly receives new maps. Plus, WEBP helps reduce the amount of data being sent to clients visiting the web portal.

How Has This Been Tested?

I don't have a proper test environment set up for this, but it's a relatively trivial change. It is unlikely to break anything.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Note: If your PR touches web/** and this is your first
contribution to the web panel, the CLA bot will comment within
~30 seconds with one-line sign instructions. You only need to sign
once per repo. See CLA.md for the full text and
CONTRIBUTING.md for the rationale.

@aarmastah
aarmastah requested a review from a team November 22, 2026 20:17
@rumblefrog

Copy link
Copy Markdown
Member

Are these all stock maps, or are custom maps also in this? Would like to keep it to stock maps only.

Comment thread sourcebans-pp.zip Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some custom maps included but I can easily remove them.

What's this?

Zipped copy of the repository I downloaded and forgot to remove; I'll get rid of it.

@aarmastah

Copy link
Copy Markdown
Contributor Author

Removed the extra custom maps. There are still some other custom maps in here, but those were there when I started.

@rumblefrog
rumblefrog added this pull request to the merge queue Nov 25, 2026
Merged via the queue into sbpp:main with commit 15d2385 Nov 25, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants