<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">Hello,
<br>
<br>
I am currently trying to create my own plymouth theme, using
plymouth-script. I have created a background wallpaper which
displays fine when using plymouth-x11 for testing. But when
actually used on boot, all I can see is colored vertical stripes.
I suspect there is something wrong with the image format.
<br>
<br>
It is a PNG with a resolution of 1920x1080 (will be scaled by the
plymouth script). No transparency is used. I tried using indexed
colors too, but it seems to make no difference.
<br>
<br>
The progress meter on top of the image shows fine in any case.
<br>
<br>
Thank you for your help,
<br>
<br>
Anreas
<br>
<br>
P.S.: The relevant script snippet:
<br>
screen_ratio = Window.GetHeight() / Window.GetWidth();
<br>
wallpaper_image = Image("wallpaper.png");
<br>
wallpaper_image_ratio = wallpaper_image.GetHeight() /
wallpaper_image.GetWidth();
<br>
if (screen_ratio > wallpaper_image_ratio)
<br>
{
<br>
scale_factor = Window.GetHeight() /
wallpaper_image.GetHeight();
<br>
}
<br>
else
<br>
{
<br>
scale_factor = Window.GetWidth() /
wallpaper_imager.GetWidth();
<br>
}
<br>
scaled_wallpaper_image =
wallpaper_image.Scale(wallpaper_image.GetWidth() * scale_factor,
<br>
wallpaper_image.GetHeight() * scale_factor);
<br>
wallpaper_sprite = Sprite(scaled_wallpaper_image);
<br>
wallpaper_sprite.SetX(Window.GetWidth() / 2 -
scaled_wallpaper_image.GetWidth() / 2);
<br>
wallpaper_sprite.SetY(Window.GetHeight() / 2 -
scaled_wallpaper_image.GetHeight() / 2);
<br>
<br>
</div>
</body>
</html>