How to Create a grub 0.95 background image

Source: Internet
Author: User
Tags gz file

Tools you need

Photoshop or GNU Image processing tool (Fedora 10 ),
Pe_mu, uedit.

Procedure


1. Use the image processing tool GNU Image processing tool under Fedora

First, open the image, first adjust the image to 640*480, then select the index in the Image menu mode, and select generate the optimal color palette in the pop-up dialog box, set the maximum number of colors to 14. Select Floyd steberger for Jitter (reduce the color loss), save it as an XPM file, and then compress it with gzip.

2. Practices in Windows:

A) Conception:

Grub's current version only supports 16 colors. For ease of use, we use the Windows XP startup screen and use bootxp to extract two images (the two original images can be retrieved from
Grub_splash_how2.zip
In/splashimg/resources), combined into a picture:



B ).
Modify images in Photoshop
:


1 ).Open the image, index it, and open its color table. Change the value of the first three color blocks to 0x333333, and then set it to 14 colors.

("Index color" menu)

("Color table" menu)

("Adjust color value ")

2 ).Then convert the image to the RGB mode, and then "Index" It,
Pay attention to the "14" in the Red Circle in the figure"
:

("RGB color" menu)

("Index again", pay attention to the selection in the red circle, and 14 !)

> Save the image, for example
Winxp.pro.2.bmp.
The work is coming to an end.

C). Actions in PE-EM:

First,
LetProgramAfter the startup, browse the winxp.pro.2.bmp folder, right-click the image, select "graphics conversion", and select XPM
Format:

(Image format conversion)

> In this way, we get
WINXP. pro.2.xpm. Next, we will adjust this file so that it can be properly displayed for grub.

D). Adjust the relevant data in uedit:


WINXP. pro.2.xpm. is displayed in uedit.

1). "C #2d2d3e3ed2d2",-> "C # 2D (2D) 3E (3e) D2 (D2)",-> "C
#2d3ed2 ", ();


2). "C #2d3ed2",-> "[Tab] C #2d3ed2 ",
();


3) put all0d 0a-> 0a,
(B );

()

(B)

OK. Now, save
XPM file, we can go to Vmware
To test the effect, such:


Notes

To save space, we can also compress it to generate an xpm.gz file.
Here is a tool named gzip.exe, which can be used as a command line (you can use grub_splash_how2.zip/gzip.zip
Obtained ):

Gzip-9
WINXP. pro.2.xpm

WINXP. pro.2.xpm
The file disappears and becomes winxp.pro.2.xpm.gz.

OK,
That's all. Wish you like it, and hope it be useful!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.