[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#459352: new patch



Uhm sorry, I overlooked that the resulting image had its bit depth
dramatically degraded.

Here's a new patch, using rsvg for svg->png conversion, then imagemagick
for png->tga.

-- 
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 /.)
diff -ur desktop-base-4.0.4.old/debian/control desktop-base-4.0.4/debian/control
--- desktop-base-4.0.4.old/debian/control	2007-11-23 11:38:34.000000000 +0100
+++ desktop-base-4.0.4/debian/control	2008-01-05 20:39:10.000000000 +0100
@@ -12,7 +12,7 @@
 
 Package: desktop-base
 Architecture: all
-Depends: librsvg2-common
+Depends: librsvg2-common, librsvg2-bin, imagemagick
 Suggests: gnome | kde | xfce4 | wmaker
 Description: common files for the Debian Desktop
  This package contains various miscellaneous files which are used by
diff -ur desktop-base-4.0.4.old/debian/postinst desktop-base-4.0.4/debian/postinst
--- desktop-base-4.0.4.old/debian/postinst	2007-11-23 11:39:56.000000000 +0100
+++ desktop-base-4.0.4/debian/postinst	2008-01-05 20:38:22.000000000 +0100
@@ -57,5 +57,12 @@
         /usr/share/images/desktop-base/desktop-splash \
         desktop-splash \
         /usr/share/images/desktop-base/Splash-Debian_red.png 10
-fi
 
+    # GRUB background
+    if test -e /usr/share/images/desktop-base/debian-blueish-wallpaper.svg \
+            && ! test -e /usr/share/images/desktop-base/debian-blueish-wallpaper_640x480.tga ; then
+        png=`mktemp -t XXXXXXXXXX.png`
+        rsvg -w 640 -h 480 /usr/share/images/desktop-base/debian-blueish-wallpaper.svg ${png}
+        convert ${png} /usr/share/images/desktop-base/debian-blueish-wallpaper_640x480.tga
+    fi
+fi
diff -ur desktop-base-4.0.4.old/debian/prerm desktop-base-4.0.4/debian/prerm
--- desktop-base-4.0.4.old/debian/prerm	2007-11-23 11:40:13.000000000 +0100
+++ desktop-base-4.0.4/debian/prerm	2008-01-05 20:07:12.000000000 +0100
@@ -31,5 +31,7 @@
 
     update-alternatives --remove desktop-splash \
         /usr/share/images/desktop-base/Splash-Debian_red.png
+
+    rm -f /usr/share/images/desktop-base/debian-blueish-wallpaper_640x480.tga
 fi
 

Reply to: