Page 3 of 3

Posted: Mon 12 Aug 2013, 19:25
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
.

Posted: Mon 12 Aug 2013, 19:37
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...

Posted: Tue 13 Aug 2013, 16:01
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).

Posted: Tue 13 Aug 2013, 18:14
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,

Posted: Tue 13 Aug 2013, 19:40
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

Posted: Tue 13 Aug 2013, 19:50
by ASRI éducation
mikeb wrote:More glorious workarounds...
The result of a team effort. :D

Posted: Wed 03 Dec 2014, 20:55
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. ;)

Posted: Wed 10 Dec 2014, 06:59
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