I have a strange problem: I'm tryng to convert some jpg to xpm with the common command
It looks good (well, 14 colors, obviously) viewing with display, eog, gthumb, GIMP. Then gzip and the other stuff. Well, this image loads as splashimage, but in GRUB colors are all wrongs, as my PC has assumed some LSD. Loading the same picture with GIMP and saving (without any modify) results in good colors with GRUB. How is it possible?
$ convert -resize 640x480\! -colors 14 picture.jpg picture.xpm
Identify give this result:
All I can see is that one is DirectClass, the other PseudoClass. I looked for a way to force DirectClass, but nothing works. Someone can try this? Is this a bug in ImageMagick? I'm using Hardy Heron.
$ identify YaquinaHeadLighthouseGimp.xpm
YaquinaHeadLighthouseGimp.xpm XPM 640x480 640x480+0+0 DirectClass 16-bit 302.164kb
$ identify YaquinaHeadLighthouseMagick.xpm
YaquinaHeadLighthouseMagick.xpm XPM 640x480 640x480+0+0 PseudoClass 14c 16-bit 302.283kb
[UPDATE] To try splashimage without reboot see http://wiki.debian.org/Grub/SplashImage "Testing with QEMU". Thanks.
$ convert -version
Version: ImageMagick 6.3.7 02/19/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
The problem is solved with the option -depth, the command become:
Without this option IM created a 16-bit image, whereas GIMP created as default a 8-bit image... Not a problem of DirectClass or PseudoClass. I could realize only with identify -verbose, which says the true depth... damn it!
$ convert picture.jpg -resize 640x480\! -colors 14 -depth 8 picture.xpm