From: Colin D Bennett <colin@gibibit.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: olaf@mandel.name
Subject: Re: [patch] background_image: image centering and scaling
Date: Sun, 31 Aug 2008 08:46:13 -0700 [thread overview]
Message-ID: <20080831084613.51ea00d8@gamma.lan> (raw)
In-Reply-To: <48B8D666.5040502@mandel.name>
[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]
On Fri, 29 Aug 2008 22:11:02 -0700
Olaf Mandel <olaf@mandel.name> wrote:
> Vesa Jääskeläinen schrieb:
> -Snipp-
> > I will however look at if there are some ideas that you have
> > provided what is still missing from new graphical menu
> > implementation that should be there.
> -Snipp-
>
> Hello,
>
> thanks. I must admit to not looking at the source code for the
> project. Will scaling also be used for "simple" background_image
> commands? If yes and if the scaling does preserve the aspect ratio of
> the image, then the background picture is not necessarily in the
> upper left corner of the screen (an assumption in the code in grub2
> trunk).
>
> I hope some version of the gfxmenu project finds its way into the
> trunk of the grub2 repository soon. :-)
>
> Best regards,
> Olaf
Hi Olaf,
Thanks for your work! It would be great if you wanted to enhance my
code by adding a preserve-aspect-ratio mode; currently my
background_image command scales to fit the screen without regard for
the image's original aspect ratio. Currently the '--mode' / '-m'
option to 'background_image' accepts the following values:
stretch
Stretch the image to fit without regard for the original aspect ratio.
normal
Do not scale the image; origin anchored to upper-left corner.
I think if you added a "fit" option which would fit the image
preserving aspect, that would be nice. Also, you could either
add a "center" option which would center the background image without
altering its size. I think the "normal" option will not be very
desirable when scaling and centering are both available, since I can't
imagine why you'd want an image stuck in the corner instead of centered
or scaled in some way.
If you want to see the code for this, take a look at the message I sent
to the grub-devel list today entitled "[PATCH] GSoC #09 Bitmap scaling".
This patch may require some of the prior patches as well, however
(possibly #06 and/or #07).
Regards,
Colin
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-08-31 15:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 1:46 [patch] background_image: image centering and scaling Olaf Mandel
2008-08-29 14:56 ` Vesa Jääskeläinen
2008-08-29 15:17 ` Felix Zielcke
2008-08-30 5:11 ` Olaf Mandel
2008-08-30 15:00 ` Vesa Jääskeläinen
2008-08-30 18:57 ` colin
2008-08-30 19:07 ` Vesa Jääskeläinen
2008-08-31 15:46 ` Colin D Bennett [this message]
2008-09-02 7:16 ` Olaf Mandel
2008-08-30 12:05 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080831084613.51ea00d8@gamma.lan \
--to=colin@gibibit.com \
--cc=grub-devel@gnu.org \
--cc=olaf@mandel.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.