Red Hat Bugzilla – Bug 179757
[PATCH] preserve aspect ratio of SVG images in gdmgreeter (originally from gdm 2.8)
Last modified: 2012-04-20 14:52:02 EDT
Description of problem:
In gdm 2.8, when designing a gdmgreeter theme (XML file) you can specify 'scale'
for a height or width parameter of a SVG image. This keeps the aspect ratio of
the image correct while allowing the size to vary according to the display
In gdm 2.6 the only way to do this is to always give images a fixed size in
pixels. It's not a huge deal but it's nice if you want a logo to vary according
to the size of the screen, without it being stretched on widescreen monitors, etc.
I pulled the patch out of gdm CVS and rediffed it against gdm 2.6. The patch is
attached if you have any interest in adding this. Upgrading to gdm 2.8 would
have the same result. The patch doesn't change the DTD of the XML file used for
a greeter theme, so there is no risk of becoming incompatible with existing themes.
Version-Release number of selected component (if applicable):
I am using gdm-188.8.131.52-7.rhel4.4 (from RHEL4 Update 2) plus this patch. Works
Steps to Reproduce:
1. note that 'scale' parameter is not supported in gdm 2.6 because it first
appeared in gdm 2.8
See attached patch, which is the verbatim change that went into gdm 2.8 source
(just rediffed against gdm 2.6 + rh).
Or, if you want to pull it out of CVS yourself, it's the 'gdm2' module in GNOME
CVS, the log entry is:
2005-04-19 Brian Cameron <firstname.lastname@example.org>
gui/greeter/greeter_parser.c, docs/C/gdm.xml: Now
support ratio scaling of SVG images. Docs weren't
provided with the patch so I added some. Patch
provided by. Fixes bug 159524. Patch provided by
Vincent Untz <email@example.com>.
Created attachment 124063 [details]
patch against gdm 2.6 that adds aspect ratio preservation for SVG images (originally from gdm 2.8)
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. After consideration, Red Hat does not plan to incorporate the suggested capability in a future release of Red Hat Enterprise Linux. If you would like Red Hat to re-consider your feature request, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.