--- imagecache_coloractions.module	2009-05-01 21:54:50.000000000 -0700
+++ imagecache_coloractions.new.module	2010-09-27 09:42:57.027881300 -0700
@@ -275,7 +275,16 @@ function imagecache_convert_form($action
       '#type' => 'select',
       '#default_value' => isset($action['format']) ? isset($action['format']) : 'image/png',
       '#options' => imagecache_file_formats(),
-    )
+    ),
+    'quality' => array(
+      '#type' => 'textfield',
+      '#title' => t('JPEG quality'),
+      '#description' => t('Define the image quality for JPEG manipulations only. Ranges from 0 to 100. Higher values mean better image quality, but bigger files.'),
+      '#size' => 10,
+      '#maxlength' => 3,
+      '#default_value' => (isset($action['quality'])) ? $action['quality'] : '69',
+      '#field_suffix' => '%',
+    ),
   );
   return $form;
 }
@@ -284,8 +293,12 @@ function imagecache_convert_form($action
  * Implementation of theme_hook() for imagecache_ui.module
  */
 function theme_imagecache_convert($element) {
+  $data = $element['#value'];
   $formats = imagecache_file_formats();
-  return t("Convert to") ." : ". $formats[$element['#value']['format']];
+  return t('Convert to @format, quality: @quality', array(
+    '@format' => $formats[$data['format']],
+    '@quality' => $data['quality']
+    ));
 }
 
 /**
