Bug#561923: grub-pc: Automatically convert background images to suitable format

Colin Watson cjwatson at debian.org
Wed Jan 26 14:36:33 UTC 2011


On Tue, Jan 25, 2011 at 01:38:02PM +0100, Alexander Kurtz wrote:
> Am Montag, den 21.12.2009, 10:00 +0000 schrieb Paul Saunders:
> > I am attaching a patch that uses convert (from ImageMagick) to allow the
> > use of arbitrary images as the grub background. In particular it resizes
> > the image to the desired GRUB_GFXMODE and sets the pixel depth to 8-bit.
> > Although this would necessitate an extra dependency, it seems to me it
> > would also fix bugs #560978, #495282 and  #539963
> 
> I really like the idea and would like to include something like this in
> the new version of /etc/grub.d/05_debian_theme. This would make the
> background handling even more flexible and could simplify the code. 
> 
> Colin, what do you think of this? If you don't want to add the
> dependency, we could still add the code and make it fail gracefully if
> ImageMagick isn't installed.

My main concern is that in future I want GRUB_GFXMODE to be dynamic,
detected from VBE at boot time (it's already this way in Ubuntu).  This
means that userspace wouldn't know what size to convert to.

Can't we do whatever conversion is needed at boot time instead?  GRUB
has some fairly sophisticated image processing facilities nowadays.

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list