Skip to content

Optimize PNG images in resources folder#38229

Merged
jdm merged 1 commit intoservo:mainfrom
lumiscosity:optimize-resources
Jul 23, 2025
Merged

Optimize PNG images in resources folder#38229
jdm merged 1 commit intoservo:mainfrom
lumiscosity:optimize-resources

Conversation

@lumiscosity
Copy link
Copy Markdown
Contributor

@lumiscosity lumiscosity commented Jul 23, 2025

Losslessly optimizes the PNG images in the resources folder with:

oxipng -o max -a -s
oxipng -o max --zopfli -a -s

Tests are unaffected by this commit in order to avoid potential breakages.

As an aside: shouldn't tumbeast.png and badcert.jpg be removed? For tumbeast.png, the related page resources/not-found.html doesn't seem to be reachable by any means (the usual dry error message is used instead, as far as my testing goes, neither about:not-found nor servo:not-found work), and the only use of badcert.jpg (in badcert.html) got removed in 8422dac.

Testing: Unnecessary. Since the optimized images haven't changed their extension, so long as Servo's PNG parsing is correct, there should be no change aside from reduced binary sizes.

@jdm
Copy link
Copy Markdown
Member

jdm commented Jul 23, 2025

Yes, it would be good to remove resource files that are no longer used.

@jdm jdm enabled auto-merge July 23, 2025 18:09
@jdm jdm added this pull request to the merge queue Jul 23, 2025
Merged via the queue into servo:main with commit 0676310 Jul 23, 2025
24 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2025
As previously discussed in #38229. To recap: `badcert.jpg` was made
unused in 8422dac and `tumbeast.png`
and its associated file of `not-found.html` were superseded at some
point by a message in `neterror.html` (if it were still used, it'd
surely be
[embedded](https://github.com/servo/servo/blob/main/components/shared/embedder/resources.rs).)

This PR also removes two unnecessary spaces inside of the new tab's CSS
file, ensuring a consistent 2 space indentation in the file and saving 2
bytes.

Testing: Unnecessary, as this commit only removes unused assets (and
fixes one style nit).

Signed-off-by: maple! <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants