* grub2 doesn't parse .jpeg files
@ 2008-02-25 13:45 shirish
2008-02-25 13:53 ` Bean
2008-02-28 10:22 ` Robert Millan
0 siblings, 2 replies; 7+ messages in thread
From: shirish @ 2008-02-25 13:45 UTC (permalink / raw)
To: grub-devel
Hi all,
I'm using grub 1.96+20080203-1ubuntu1 . Now in the directory
/usr/share/images/desktop-base/ there are quite few images which are
there. While some of the images work some didn't . Especially the
.jpg/,jpeg files. (I don't remember which extension it was for I'm on
a different machine atm. )
Another thing can one have any stuff from deviantart.com or
openclipart.org which is .png & has the required resolution or not? I
just have to add it to the path & that's it or something else also has
to be done?
--
Regards,
Shirish Agarwal
This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
2008-02-25 13:45 shirish
@ 2008-02-25 13:53 ` Bean
2008-02-28 10:22 ` Robert Millan
1 sibling, 0 replies; 7+ messages in thread
From: Bean @ 2008-02-25 13:53 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Feb 25, 2008 at 9:45 PM, shirish <shirishag75@gmail.com> wrote:
> Hi all,
> I'm using grub 1.96+20080203-1ubuntu1 . Now in the directory
> /usr/share/images/desktop-base/ there are quite few images which are
> there. While some of the images work some didn't . Especially the
> .jpg/,jpeg files. (I don't remember which extension it was for I'm on
> a different machine atm. )
> Another thing can one have any stuff from deviantart.com or
> openclipart.org which is .png & has the required resolution or not? I
> just have to add it to the path & that's it or something else also has
> to be done?
> --
Please upload the ones that doesn't work.
--
Bean
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
@ 2008-02-26 2:06 shirish
2008-02-26 2:21 ` Pavel Roskin
2008-02-26 10:42 ` Luca Capello
0 siblings, 2 replies; 7+ messages in thread
From: shirish @ 2008-02-26 2:06 UTC (permalink / raw)
To: grub-devel
>
> Message: 5
> Date: Mon, 25 Feb 2008 21:53:19 +0800
> From: Bean <bean123ch@gmail.com>
> Subject: Re: grub2 doesn't parse .jpeg files
> To: "The development of GRUB 2" <grub-devel@gnu.org>
> Message-ID:
> <ca0f59980802250553u2f0f7b0amcba5b41e6388fed1@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Mon, Feb 25, 2008 at 9:45 PM, shirish <shirishag75@gmail.com> wrote:
> > Hi all,
> > I'm using grub 1.96+20080203-1ubuntu1 . Now in the directory
> > /usr/share/images/desktop-base/ there are quite few images which are
> > there. While some of the images work some didn't . Especially the
> > .jpg/,jpeg files. (I don't remember which extension it was for I'm on
> > a different machine atm. )
> > Another thing can one have any stuff from deviantart.com or
> > openclipart.org which is .png & has the required resolution or not? I
> > just have to add it to the path & that's it or something else also has
> > to be done?
> > --
>
> Please upload the ones that doesn't work.
>
> --
> Bean
> ------------------------------
Hi all,
I think I know why the .jpg & the .svg files don't work. This is the
section of /boot/grub/grub.cfg
### BEGIN /etc/grub.d/05_debian_theme ###
insmod png
if background_image
(hd0,1)/usr/share/images/desktop-base/debblue-1600x1200.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
And there is a module called png.mod
shirish@Mugglewille:~$ ll -h /boot/grub/png.mod
-rw-r--r-- 1 root root 6.1K 2008-02-09 20:01 /boot/grub/png.mod
I'm guessing this is the reason those are parsed while others are not.
And I can see all the other images in the browser. Maybe there needs
to be svg.mod & jpg.mod . There are no modules with this name in the
/boot/grub/ directory.
--
Regards,
Shirish Agarwal
This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
2008-02-26 2:06 grub2 doesn't parse .jpeg files shirish
@ 2008-02-26 2:21 ` Pavel Roskin
2008-02-28 10:22 ` Robert Millan
2008-02-26 10:42 ` Luca Capello
1 sibling, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2008-02-26 2:21 UTC (permalink / raw)
To: The development of GRUB 2, shirish
Quoting shirish <shirishag75@gmail.com>:
> I'm guessing this is the reason those are parsed while others are not.
> And I can see all the other images in the browser. Maybe there needs
> to be svg.mod & jpg.mod . There are no modules with this name in the
> /boot/grub/ directory.
jpeg.mod is there, and it needs to be loaded for JPEG files. SVG is
not supported yet, I believe.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
2008-02-26 2:06 grub2 doesn't parse .jpeg files shirish
2008-02-26 2:21 ` Pavel Roskin
@ 2008-02-26 10:42 ` Luca Capello
1 sibling, 0 replies; 7+ messages in thread
From: Luca Capello @ 2008-02-26 10:42 UTC (permalink / raw)
To: The development of GRUB 2
Hi there!
On Tue, 26 Feb 2008 03:06:05 +0100, shirish wrote:
> I think I know why the .jpg & the .svg files don't work. This is the
> section of /boot/grub/grub.cfg
>
> ### BEGIN /etc/grub.d/05_debian_theme ###
> insmod png
> if background_image
> (hd0,1)/usr/share/images/desktop-base/debblue-1600x1200.png ; then
It seems that you've modified the stock /etc/grub.d/05_debian_theme [1]:
--8<---------------cut here---------------start------------->8---
# check for usable backgrounds
use_bg=false
if [ "$GRUB_TERMINAL" = "gfxterm" ] ; then
for i in {/usr/share/images/desktop-base,/boot/grub}/debian-blueish-wallpaper-640x480.{png,tga} ; do
if bg=`convert_system_path_to_grub_path $i` ; then
case ${bg} in
*.png) reader=png ;;
*.tga) reader=tga ;;
*.jpg|*.jpeg) reader=jpeg ;;
esac
if test -e /boot/grub/${reader}.mod ; then
echo "Found Debian background: `basename ${bg}`" >&2
use_bg=true
break
fi
fi
done
fi
--8<---------------cut here---------------end--------------->8---
Since the check is only performed for a specific image either in png or
tga format, jpg images are not taken into account.
Yesterday night I worked on a solution which enables something more
configurable, but I haven't had time to submit upstream yet.
Thx, bye,
Gismo / Luca
Footnotes:
[1] http://svn.debian.org/wsvn/pkg-grub/grub2/trunk/debian/grub.d/05_debian_theme?op=file&rev=689&sc=0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
2008-02-25 13:45 shirish
2008-02-25 13:53 ` Bean
@ 2008-02-28 10:22 ` Robert Millan
1 sibling, 0 replies; 7+ messages in thread
From: Robert Millan @ 2008-02-28 10:22 UTC (permalink / raw)
To: The development of GRUB 2
On Mon, Feb 25, 2008 at 07:15:03PM +0530, shirish wrote:
> Hi all,
> I'm using grub 1.96+20080203-1ubuntu1 . Now in the directory
> /usr/share/images/desktop-base/ there are quite few images which are
> there. While some of the images work some didn't . Especially the
> .jpg/,jpeg files. (I don't remember which extension it was for I'm on
> a different machine atm. )
> Another thing can one have any stuff from deviantart.com or
> openclipart.org which is .png & has the required resolution or not? I
> just have to add it to the path & that's it or something else also has
> to be done?
Before attributing the problem to the jpeg parser, I suggest you try converting
them to tga or png.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: grub2 doesn't parse .jpeg files
2008-02-26 2:21 ` Pavel Roskin
@ 2008-02-28 10:22 ` Robert Millan
0 siblings, 0 replies; 7+ messages in thread
From: Robert Millan @ 2008-02-28 10:22 UTC (permalink / raw)
To: The development of GRUB 2; +Cc: shirish
On Mon, Feb 25, 2008 at 09:21:27PM -0500, Pavel Roskin wrote:
> Quoting shirish <shirishag75@gmail.com>:
>
> >I'm guessing this is the reason those are parsed while others are not.
> >And I can see all the other images in the browser. Maybe there needs
> >to be svg.mod & jpg.mod . There are no modules with this name in the
> >/boot/grub/ directory.
>
> jpeg.mod is there, and it needs to be loaded for JPEG files. SVG is
> not supported yet, I believe.
Known problem. Next 05_debian_theme will be improved to correct this.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-02-28 10:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 2:06 grub2 doesn't parse .jpeg files shirish
2008-02-26 2:21 ` Pavel Roskin
2008-02-28 10:22 ` Robert Millan
2008-02-26 10:42 ` Luca Capello
-- strict thread matches above, loose matches on Subject: below --
2008-02-25 13:45 shirish
2008-02-25 13:53 ` Bean
2008-02-28 10:22 ` Robert Millan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.