Question regarding image format
Andreas Heinlein
aheinlein at gmx.com
Sun Jun 30 23:38:16 PDT 2013
Hello,
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.
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.
The progress meter on top of the image shows fine in any case.
Thank you for your help,
Anreas
P.S.: The relevant script snippet:
screen_ratio = Window.GetHeight() / Window.GetWidth();
wallpaper_image = Image("wallpaper.png");
wallpaper_image_ratio = wallpaper_image.GetHeight() /
wallpaper_image.GetWidth();
if (screen_ratio > wallpaper_image_ratio)
{
scale_factor = Window.GetHeight() / wallpaper_image.GetHeight();
}
else
{
scale_factor = Window.GetWidth() / wallpaper_imager.GetWidth();
}
scaled_wallpaper_image =
wallpaper_image.Scale(wallpaper_image.GetWidth() * scale_factor,
wallpaper_image.GetHeight() * scale_factor);
wallpaper_sprite = Sprite(scaled_wallpaper_image);
wallpaper_sprite.SetX(Window.GetWidth() / 2 -
scaled_wallpaper_image.GetWidth() / 2);
wallpaper_sprite.SetY(Window.GetHeight() / 2 -
scaled_wallpaper_image.GetHeight() / 2);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/plymouth/attachments/20130701/a41bc476/attachment.html>
More information about the plymouth
mailing list