Posted by dokumori on October 15, 2011 at 3:24am
Image Toolkit gets the JPEG quality setting from the variables just when the image is saved and there are no hooks to alter this.
The attached patch does the following to make it possible:
- adds drupal_alter() to image_gd_save() to allow other modules like Image Quality module to alter the image quality
- make image_toolkit_invoke() pass $style to custom functions