After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558143 - gnome-bg should crop xml referenced image files to allow multiple aspect ratios from a single image
gnome-bg should crop xml referenced image files to allow multiple aspect rati...
Status: RESOLVED DUPLICATE of bug 558241
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
git master
Other All
: Normal enhancement
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-27 17:58 UTC by Charlie Brej
Modified: 2008-12-01 16:09 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch to allow cropping in gnome background images specified from the xml description (4.17 KB, patch)
2008-10-27 18:02 UTC, Charlie Brej
none Details | Review

Description Charlie Brej 2008-10-27 17:58:48 UTC
Currently the background sets within distributions (tend to) contain multiple copies of the same image in different aspect ratios. What could be done is to allow cropping of one image to a desired aspect ratio reather than distributing all possible combinations as individual images.

So currently we have:
<from>
    <size width="2048" height="1536">4-3.png</size>
    <size width="1920" height="1200">16-10.png</size>
    <size width="1600" height="1280">5-4.png</size>
    <size width="3200" height="1200">8-3.png</size>   
</from>

And say we are interested in the stuff in the bottom right corner we add an X/Y offset:

<from>
    <size width="1600" height="1200" x="1600" y="0">8-3.png</size>
    <size width="1920" height="1200" x="1280" y="0">8-3.png</size>
    <size width="1500" height="1200" x="1700" y="0">8-3.png</size>
    <size width="3200" height="1200"               >8-3.png</size>
</from>

Patch is attached.
Comment 1 Charlie Brej 2008-10-27 18:02:05 UTC
Created attachment 121448 [details] [review]
patch to allow cropping in gnome background images specified from the xml description
Comment 2 Vincent Untz 2008-12-01 16:09:43 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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