? 375062-imageapi-transparency.patch
Index: imageapi_imagemagick.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imageapi/imageapi_imagemagick.module,v
retrieving revision 1.17.2.7
diff -u -p -r1.17.2.7 imageapi_imagemagick.module
--- imageapi_imagemagick.module	17 Oct 2010 18:02:32 -0000	1.17.2.7
+++ imageapi_imagemagick.module	17 Oct 2010 18:26:57 -0000
@@ -102,6 +102,9 @@ function imageapi_imagemagick_image_open
 }
 
 function imageapi_imagemagick_image_close($image, $dst) {
+  $image->ops += array(
+    'quality' => '-quality '. (int) variable_get('imageapi_imagemagick_quality', 75),
+  );
   return _imageapi_imagemagick_convert($image->source, $dst, $image->ops);
 }
 
@@ -145,7 +148,6 @@ function imageapi_imagemagick_image_desa
  * Calls the convert executable with the specified filter.
  */
 function _imageapi_imagemagick_convert($source, $dest, $args) {
-  $args['quality'] = '-quality '. escapeshellarg(variable_get('imageapi_imagemagick_quality', 75));
   // To make use of ImageMagick 6's parenthetical command grouping we need to make
   // the $source image the first parameter and $dest the last.
   // See http://www.imagemagick.org/Usage/basics/#cmdline for more info.
