8000 selfdrive/assets: rasterize SVGs by incognitojam · Pull Request #35243 · commaai/openpilot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

selfdrive/assets: rasterize SVGs #35243

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

Merged
merged 7 commits into from
May 16, 2025
Merged

selfdrive/assets: rasterize SVGs #35243

merged 7 commits into from
May 16, 2025

Conversation

incognitojam
Copy link
Contributor
@incognitojam incognitojam commented May 15, 2025

for #35140 and other raylib UI

Had to switch to Inkscape instead of ImageMagick to convert as it didn't support the more complex SVGs like the experimental icon. I also updated the script to export as 512px max dimensions - some SVGs at 4x were over 4000px. It also runs optipng against the output giving ~45% savings.

experimental.png experimental.svg
experimental.png experimental.svg

@incognitojam incognitojam marked this pull request as draft May 16, 2025 00:10
@incognitojam incognitojam marked this pull request as ready for review May 16, 2025 00:28
@incognitojam incognitojam merged commit 83679bd into master May 16, 2025
17 checks passed
@incognitojam incognitojam deleted the rasterize-svgs branch May 16, 2025 00:33
@deanlee
Copy link
Contributor
deanlee commented May 16, 2025

@incognitojam How about using four SVG images for the special keyboard keys (⌫, →, ⇧, ⇪) instead of managing a specific font file? This would make it simpler and more natural to render these keys in the keyboard.py render loop. What do you think?

@incognitojam
Copy link
Contributor Author

That sounds good, I'll see if I can make them?

@deanlee
Copy link
Contributor
deanlee commented May 16, 2025

That would be fantastic!

@incognitojam
Copy link
Contributor Author

@deanlee Added them in #35247

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
0