Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimise GEWIS logo in error pages #1962

Merged

Conversation

tomudding
Copy link
Member

Description

When I created this using a base64-encoded PNG URI was the easiest, however, the URI is more than 30k characters. Doing it with the SVG makes it scale better and is only 1.5k characters (unfortunately, the URL encoding is necessary). That is a reduction of 95%.


The real reason for doing is is that I have been working on the custom error pages for the CBC and needed the optimisations for that.

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)
  • Documentation improvement (no changes to code)
  • Other (please specify)

When I created this using a base64-encoded PNG URI was the easiest, however, the
URI is more than 30k characters. Doing it with the SVG makes it scale better and
is only 1.5k characters (unfortunately, the URL encoding is necessary). That is
a reduction of 95%.

---

The real reason for doing is is that I have been working on the custom error
pages for the CBC and needed the optimisations for that.
@tomudding tomudding merged commit 3614742 into GEWIS:main Jan 4, 2025
4 checks passed
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.

1 participant