-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Please find attached a tentative patch that (I think?) fixes the issue.
It's hard to tell if the alternative sequence of imagemagick commands
that I came up with faithfully recreates the original shadow effect, but
after two hours of fiddling with the imagemagick examples, I'm kind of
bored now :-).

I'm rebuilding the package right now. Should I let you apply the patch
or is there a procedure I should go through to submit the new version of
the package myself? (If that's the case, I'd be happy to read any
relevant guide/howto.)

Cheers,

~ jonathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlISg4cACgkQaAzAp091CaDGNwCfVoJuRLsuNpUkOq3jnHBFPerI
O0gAnAhF+J16mKgCkeMjbKLp3DQeEK9D
=UfdF
-----END PGP SIGNATURE-----

diff -rpu8 comixcursors-0.7.2/bin/render-cursor-image 
comixcursors-0.7.2-patched/bin/render-cursor-image
--- comixcursors-0.7.2/bin/render-cursor-image  2013-08-19 22:38:40.000000000 
+0200
+++ comixcursors-0.7.2-patched/bin/render-cursor-image  2013-08-19 
22:39:05.281314524 +0200
@@ -170,31 +170,37 @@ function make_shadow_image {
     local silhouette_image="$2"
     local shadow_image="$3"
 
     convert \
         -extract ${SHADOWSIZE}x${SHADOWSIZE}+${LEFT}+${LEFT} \
         -resize ${TMPSIZE}x${TMPSIZE} \
         "$bare_image" "$silhouette_image"
 
-    convert -modulate 0 \
-        -fill "$SHADOWCOLOR" \
-        -colorize 100 \
-        -channel Alpha \
-        -fx \'a-$SHADOWTRANS\' \
+    convert \
+        -alpha extract \
         "$silhouette_image" "$shadow_image"
 
+    mogrify \
+        -background "$SHADOWCOLOR" \
+        -alpha shape \
+        "$shadow_image"
+
+    mogrify \
+         -channel Alpha \
+         -fx \'a-$SHADOWTRANS\' \
+         "$silhouette_image"
+
     mogrify -channel Alpha \
         -blur ${SCALEBLUR}x${SCALEBLUR} \
         -resize 50% \
         "$shadow_image"
 
     mogrify -roll +${XMOVE}+${YMOVE} \
         "$shadow_image"
-
 }
 
 # Render the bare cursor image.
 svg2png "$infile" "$bare_image" $TMPSIZE
 
 # Check whether the shadow image is cached.
 if [ ! -f "$shadow_image" ] ; then
     # Make the shadow image.

Reply via email to