You are not logged in.

#1 2024-05-10 14:36:34

FishBoneEK
Member
Registered: 2023-09-26
Posts: 60

Does GRUB support SVG background?

It supports SVG icons as I can see in https://github.com/vinceliuice/grub2-themes.git, but it doesn't seem to support SVG backgrounds because so far I see no themes doing that.
I know I can just try it out, still asking it anyways because I think there will be users having this same question.

Offline

#2 2024-05-10 14:59:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,229

Re: Does GRUB support SVG background?

It doesn't support SVG at all. The repo you point at has an installer script that renders out all the SVGs at desired resolutions into PNG.

Offline

#3 2024-05-10 15:19:02

FishBoneEK
Member
Registered: 2023-09-26
Posts: 60

Re: Does GRUB support SVG background?

V1del wrote:

It doesn't support SVG at all. The repo you point at has an installer script that renders out all the SVGs at desired resolutions into PNG.

That's true...What a shame...

Offline

#4 2024-05-10 15:38:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: Does GRUB support SVG background?

Why is it a shame?  Just render your svg background to an actual image.  Why would a boot loader need vector images - it's only running on the machine it's installed on.  In other words, it would require all the complexity of svg rasterization just to rasterize it to the exact same size every single boot.  That'd be ridiculous.  Rasterize it once, then just blit it to the screen on each boot.  Vector images are good when the rasterized size can *not* be known ahead of time.

Last edited by Trilby (2024-05-10 15:40:19)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB