Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-09-2008, 03:57 AM
|
#1
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Rep:
|
unable to view the grub splash screen
hi all I wish to display a personal image for the grub splash screen with the menu displayed on top of it.
I am using an original jpeg image which I have customised using the following command
Quote:
convert -depth 8 -color 14 -resize 640x480 original.jpg splash.xpm
|
and then I have zipped it using the following command to get a splash.xpm.gz file
I have put the file in the /boot/grub dir and replaced he fedora8 infinity image in it with my image. However, on next bootup I see a black screen with the menu and on choosing the OS, the screen turns gray and then finally the GUI comes up as usual.
I tried to disable the hiddenmenu option on the grub.conf file as suggested by someone, but the result is still same....!
can someone help me out please.
thanks in advance
nishith
|
|
|
12-10-2008, 01:34 PM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Are you sure that the resulting image has the requested features? For example convert -resize keeps the aspect-ratio of the original image and consider the specified width and height as maximum values. To force convert to use the exact size you have to put an exclamation mark after the size specification:
Code:
convert -depth 8 -colors 14 -resize 640x480! original.jpg splash.xpm
As alternative you can try Gimp (if available) to convert the image. Just scale the image to the requested size, then go to Image --> Mode --> Indexed and in the pop-up select "Generate Optimum Palette" and put 14 as the maximum number of colors. Then save as xpm and the trick is done.
I don't really know if this is the problem, but double check the newly created splash image before substitute the original one.
|
|
|
12-11-2008, 08:24 AM
|
#3
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Original Poster
Rep:
|
thanks
I tried it out , but that didnot solve the problem.
Actually when I open the image in Gimp, I see that the image has 255 colors and the moment I make it 14 colors, it looks strange.
Nevertheless, I scaled the image to 640x480 size, but it did not work and nothing showed up other than the gray screen. I guess it is due to the low number of colors. But the tutorials on grub splash screen suggest that only 14 color images will work.
Is there some way to use a photo taken with a digital camera (7 Mega Pixel)into a grub splash screen?
|
|
|
12-11-2008, 08:58 AM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
A digital camera photo loses a lot of quality with 14 colors. I tried to convert a 2 Mega Pixel photo and large areas of the images are grey and it appears dithered. The restriction to the image format are due to the VGA mode, which supports only 16 colors, two of which are reserved for text (black and white). I'm afraid you have to choose another image, at least to see if it works as a custom splash image using the same procedure.
|
|
|
12-11-2008, 10:01 AM
|
#5
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Original Poster
Rep:
|
yeah I saw the same explanation about the 14 + 2 color thing.
But this image is from the gnome art gallery and this image is supposed to be a grub splash screen created by someone. Don't they check these things ? I am sure they do and if it is a splash screen atleast the creator would have tried it out !
Also I can't remember it right but I read it somewhere that dithering can be switched off for the image using gimp when constructing the image in 14 colors. Will that help ?
any clues about these things ?
thanks in advance
nishith
|
|
|
12-11-2008, 10:34 AM
|
#6
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Yes. I was thinking about the same: there should be a method in Gimp to reduce dithering, but I'm not an expert in image manipulation. I just tried the method described above, using Gimp, and the dithered image is displayed as grub splash. I'm sorry I cannot be of much help in this field.
|
|
|
12-11-2008, 11:52 AM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
You might try -scale instead of -resize with convert. You might also try putting -depth towards one of the last arguments. I'm not sure how order dependent convert is, but:
convert -depth 8 -colors 14 -resize 640x480! original.jpg splash.xpm
might work better as:
convert original.jpg -scale 640x480 -depth 8 -colors 14 splash.xpm
I've always had more luck with the gimp. And with 14 colors, the images generally look better if you convert it to greyscale, then dither it to 14 colors. You can of course mess with the various channels to make it red, green, blue, or any combination there of. But with a greyscale base, there's more common colors, all shades of grey. So the 14 color form of an image is less grainy.
|
|
|
12-17-2008, 01:11 PM
|
#8
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Original Poster
Rep:
|
Well Shadow_7, I have a question for you...
It seems like all the grub splash screens that are on the net are not usable, becoz they are not 14 colors to start with. They why would anyone create such a high color depth graphics and call it a splash screen when all that is usable is only 14 colors ?
I donot follow it at all ?
nishith
|
|
|
12-17-2008, 04:46 PM
|
#9
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
Did you consider using the gimp to create/modify your splash image ?
http://ruslug.rutgers.edu/~mcgrof/grub-images/#1.0
Quote:
1.3.1 Only 14 colors... How do I do that?
To get GIMP to use only a 14 color palette, right click on your file and press ALT+I and put 14 where it says "Generate Optimal Palette:" on the top of the menu. If ALT+I doesn't get you there then right click on the image and go to:
Image-->Mode-->Indexed
Specify you want 14 colors and then if you want (*recommended*) select NO DITHERING. This will tell the gimp not to try to guess colors in between areas. It is also possible that you tell them gimp what colors you want in your 14-color pallete, I actually had to do this for one of my images and I replaced a dark color for a light one. The GIMP ROCKS!
|
http://ubuntuforums.org/showthread.php?t=30341
|
|
|
All times are GMT -5. The time now is 04:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|