Wednesday, June 07, 2006

Linux ---how to change the grub image

------------------------------------------------------------------------------------------------
grub image (splashimage) is file with ".xpm.gz" format ,size 640x480 and 14 color.

So if u have the .jpg image it has to convert to the .xpm (Xpixmap) format and then compressed to .gz format using the following command :

convert -geometry 640x480 -colors 14 file.jpg splash.xpm && gzip splash.xpm

The output is splash.xpm.gz which is default filename for the "splashimage" variable of the grub.

Copy the file to the grub directory (/boot/grub/)

reboot to get the new image for the grub's splashimage.

if it is not clear mind the color and size of the source image (it should be like size 640x480 , color 14).

if u want to add text with image , u can make use the draw option provided by the "convert" command like :

convert -geometry 640x480 -colors 14 -font helvetica -fill white -pointsize 50 -draw "text 100,250 NETWORKS_LAB" bike_gua.jpg splash.xpm && gzip splash.xpm

here NETWORKS_LAB is the test printed on the splashimage.

you will get many .xpm.gz images from the Internet by a simple google search.

Contributed by my friend: Avinash Kalathil
------------------------------------------------------------------------------------------------

2 comments:

Anonymous said...

Good one....

Anonymous said...

Still, there are lots of fun songs and activities you might find entertaining. [url=http://www.mulberryhandbagssale.co.uk]Mulberry Mitzy Bags[/url] I've seen him sit down at the keyboard and do Prince's 1999 and segue that into Lean on Me by Bill Withers.. [url=http://www.goosecoatsale.ca]http://www.goosecoatsale.ca[/url] Msonmbgwr
[url=http://www.pandorajewelryvip.co.uk]pandora charm[/url] Xqpzmldsd [url=http://www.officialcanadagooseparkae.com]canada goose outlet[/url] pkbjlkbnp