Message files for the GRUB gfxmenu

Themes, icons, wallpapers, etc.
Message
Author
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#41 Post by CatDude »

Hello ASRI éducation & mikeb

Sorry i haven't responed sooner but i have also been trying to figure out this problem.

I can confirm ASRI éducation's findings,
in so much as GIMP 2.8.4 also appears to be 'mangling' jpg images. :shock:

I loaded up a copy of back-mike-ok.jpg (after verifying it worked in a GRUB gfxmenu file)
then exported it as a jpg with a different name, at which point it became corrupted
and i could not get it to work in a GRUB gfxmenu file.

This behaviour does not happen when i use GIMP 2.6.10

Another workaround to fixing these 'corrupted images',
is to open them up using mtpaint
and the use Save As to either overwrite it or save it with another name.

That does something which allows the image to display OK in a GRUB gfxmenu file.


CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#42 Post by greengeek »

Is this problem anything to do with palette depth or indexing perhaps? When I was playing around with boot images it seemed that the image parameters were restricted in some ways and I think I recall having to use irfanview on windows to (possibly) reduce colour depth or something (didn't know how to use Gimp or mtPaint properly). Sorry I can't remember much more...

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#43 Post by ASRI éducation »

greengeek wrote:Is this problem anything to do with palette depth or indexing perhaps? When I was playing around with boot images it seemed that the image parameters were restricted in some ways and I think I recall having to use irfanview on windows to (possibly) reduce colour depth or something (didn't know how to use Gimp or mtPaint properly). Sorry I can't remember much more...
I will perform complementary tests, but at first sight, I do not think the color is decisive.
It's a difference with the Splash image method (cf. HOWTO add splash image to grub).
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#44 Post by ASRI éducation »

I followed the advice CatDude. That's ok, I have an image compatible with the gfxmenu!

I want to say how I did it to create compatible files back.jpg for grub-gfxmenu (it might be useful to other users).


Steps for creating the image
1 - Gimp
Creating a project: 1600x200 image 300x300 ppi, 24b RGB color (sRGB). Note: The project is created with a size and a resolution larger than the file that will be used for gfxmenu, it is always better to have a good matrix, then it is sufficient to reduce the image in the desired size .
At the end, save the project in Gimp format (.xcf) and in jpg format (which will be used to create back.jpg file).
Reduce the size and resolution of the jpg file created => Image | Scale image (800x600 size, resolution 72x72 ppi).

Characteristics of the final image back.jpg
Format: jpg
Size: 800x600 pixels or more large
Colors: 24b RGB color (sRGB)
Resolution: 72x72 ppi
Recording quality: 100%

2 - Remove metadata
In terminal "exiv2 rm /my_folder/my_image.jpg"

3 - mtpaint (workaround with Gimp 2.8.2/4)
Open the image with mtpaint, then save it under the name "pupsat1".

4 - Creation of file pupsta1
Test the image (back.jpg) by creating a pupsta1 file. => All is ok.


Cordialement,
Attachments
asrimenu_20130813.png
(98.06 KiB) Downloaded 2996 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#45 Post by mikeb »

More glorious workarounds...so in a nutshell its a lack of/messed up meta data from the GIMP.

Hi CatDude.... thought I'd pop into the forum just to upset the locals :D

have fun

Mike

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#46 Post by ASRI éducation »

mikeb wrote:More glorious workarounds...
The result of a team effort. :D
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
Griot
Posts: 131
Joined: Fri 12 Sep 2014, 18:10
Location: Serbia

#47 Post by Griot »

mikeb wrote:Ok got here at last....

For grub4dos users the main point is to use version 4.4 which includes gfxmenu support. (and 256 inode and ext4 but not for the partition grldr is on).
The actual splash file is built in exactly the same way as normal grub.
Simply add
gfxmenu /path/to/splashfile
to your menu.lst

and enjoy....now to try and be artistic and get some graphics posted

mike
Hi mikeb. Would you be so kind to explain this to dumb a$$ noob like me? It seems like that this utility by smokey01 & CatDude (hi there dude!) doesn't work with grub4dos. :?:
All of the above relates to Legacy GRUB. Grub4Dos can also use these gfxmenu files, so it may be easier to edit whatever script it (Grub4Dos) uses to create the menu.lst and add a similar line to it.
Thank you.

P.S. Blame CatDude, he's the one who said:
So if anybody has any questions concerning it, please direct them to the grub4dos expert Mr mikeb :wink: :wink:
8)

EDIT: Due to a forum quirkiness these days, all the correspondence between mr. mikeb and yours truly, was carried out via PM. Case closed!

Thank you very much, sire. ;)

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#48 Post by mikeb »

Ok forum quirks indeed.

Here is a screenshot I made which might make it easier to see what needs to be done than a pile of words.

Mike
Attachments
splash.png
(81.15 KiB) Downloaded 290 times

Post Reply