Bug 175303

Summary: what to do about widescreen monitors and the default background...
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: fedora-logosAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dfong, johnp, mlists, rodd
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-26 19:00:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150223, 197822    
Attachments:
Description Flags
testimage.svg
none
image1.png
none
image2.png none

Description Jeremy Katz 2005-12-08 17:53:36 UTC
As widescreen monitors get more common, stretching of the background makes
things look less than ideal.  We should probably try to do something more
intelligent

Comment 1 Ray Strode [halfline] 2005-12-08 18:14:37 UTC
I wonder if SVG supports hinting for graceful changes in aspect ratio...

Otherwise, maybe we could make the default have nothing complicated at the edges
(logos, gradients, etc) and just paint the vertical bars on the side the same 
color as the background.

If we could tweak the image in the default install then that's the easiest way.
 Otherwise we have to come up with some sort of matching heuristics to figure
out which image to load.

Coming up with a non-hacky solution for this type of problem is actually sort of
hard.

Comment 2 Jeremy Katz 2005-12-08 19:01:57 UTC
Tweaking the image at the install is poor because it won't adapt nicely to
changed monitors or things like remote X.  Also, we don't know what resolution
you're going to be running at post-install in the installer and can't sanely
probe monitors because X is crap ;-)

Comment 3 Ray Strode [halfline] 2005-12-08 19:07:15 UTC
Hi,

By "image in the default install" I meant "default background image" :-).  I
didn't mean doing anything at install time.

Comment 4 Ray Strode [halfline] 2006-01-11 19:54:36 UTC
Diana, can you send me the individual layers from the default background that we
ship now?  I'm going to try to play with svg and see if i can make an adaptive
background.

Comment 5 Ray Strode [halfline] 2006-01-27 21:07:14 UTC
Diana sent me the files, i'll try to look into it soon.

Comment 6 Matthias Clasen 2006-02-02 04:17:32 UTC
Ray, I investigated the necessary svg today.

I'll attach my testimage. Here are the relevant points:

1) Set width and height on the svg element to establish the user coordinate system

2) Add the scalable background image with 
       x="0" y="0"
       width="100%" height="100%"
       preserveAspectRatio="none"

This means: fill the full size of the svg with the image

3) Add the decorations (ie the text, bubbles and smoke on transparent
background) with
       x="0" y="0"
       width="100%" height="100%"
       preserveAspectRatio="xMaxYMid meet"

This means: scale the image to fill the full size of the svg, but
only make it as large as you can while keeping the aspect ratio, and
keep all of the image within the viewport. Position the image as far
to the left as possible, and center it vertically.

Comment 7 Matthias Clasen 2006-02-02 04:19:26 UTC
Created attachment 124024 [details]
testimage.svg

Comment 8 Matthias Clasen 2006-02-02 04:21:27 UTC
Created attachment 124025 [details]
image1.png

Comment 9 Matthias Clasen 2006-02-02 04:22:14 UTC
Created attachment 124026 [details]
image2.png

Comment 10 Matthias Clasen 2006-02-02 18:48:11 UTC
Ok, scratch this, it doesn't actually work.
SVG seems to not be the right tool for this job

Comment 11 Matthias Clasen 2006-02-05 04:47:02 UTC
*** Bug 177176 has been marked as a duplicate of this bug. ***

Comment 12 Matthias Clasen 2006-07-06 21:58:13 UTC
Add to FC6Destop tracker

Comment 13 Alexander Larsson 2006-07-26 19:00:25 UTC
Doing this smart seems hard, I'm just adding a new wide background. Duping to
other bug.

*** This bug has been marked as a duplicate of 176371 ***