summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-03-09 11:44:54 +0000
committerDries Buytaert <dries@buytaert.net>2009-03-09 11:44:54 +0000
commit0ea653502c6bbe09ba90d9aba0dce69b9ca1291f (patch)
tree20d6918349bd4938e2cf972fa73e012ebf3f46ee /modules/system/system.module
parent3faf46dcb0d092d735d6dafaa3760bf4f7826350 (diff)
downloadbrdo-0ea653502c6bbe09ba90d9aba0dce69b9ca1291f.tar.gz
brdo-0ea653502c6bbe09ba90d9aba0dce69b9ca1291f.tar.bz2
- Patch #373613 by quicksketch and drewish: in order to operate on images multiple
times (such as crop, scale, then desaturate) without quality loss, we need to pass images by their raw GD (or other library) resources rather than re-opening the same image repeatedly, which causes wasted processing and loss of quality when using JPEG images. This patch reworks the image toolkits, adds some new image manipulations and adds some impressive SimpleTests.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 3ea855985..7f259ad87 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2290,5 +2290,10 @@ function theme_meta_generator_header($version = VERSION) {
* Implementation of hook_image_toolkits().
*/
function system_image_toolkits() {
- return array('gd');
+ return array(
+ 'gd' => array(
+ 'title' => t('GD2 image manipulation toolkit'),
+ 'available' => drupal_function_exists('image_gd_check_settings') && image_gd_check_settings(),
+ ),
+ );
}