summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/image.inc31
1 files changed, 30 insertions, 1 deletions
diff --git a/includes/image.inc b/includes/image.inc
index 8c66557d9..e6709047b 100644
--- a/includes/image.inc
+++ b/includes/image.inc
@@ -27,6 +27,35 @@
*/
/**
+ * @file
+ * API for manipulating images.
+ */
+
+/**
+ * @defgroup image Image toolkits
+ * @{
+ * Drupal's image toolkits provide an abstraction layer for common image file
+ * manipulations like scaling, cropping, and rotating. The abstraction frees
+ * module authors from the need to support multiple image libraries, and it
+ * allows site administrators to choose the library that's best for them.
+ *
+ * PHP includes the GD library by default so a GD toolkit is installed with
+ * Drupal. Other toolkits like ImageMagic are available from contrib modules.
+ * GD works well for small images, but using it with larger files may cause PHP
+ * to run out of memory. In contrast the ImageMagick library does not suffer
+ * from this problem, but it requires the ISP to have installed additional
+ * software.
+ *
+ * Image toolkits are installed by copying the image.ToolkitName.inc file into
+ * Drupal's includes directory. The toolkit must then be enabled using the
+ * admin/settings/image-toolkit form.
+ *
+ * Only one toolkit maybe selected at a time. If a module author wishes to call
+ * a specific toolkit they can check that it is installed by calling
+ * image_get_available_toolkits(), and then calling its functions directly.
+ */
+
+/**
* Return a list of available toolkits.
*
* @return
@@ -79,7 +108,7 @@ function image_get_toolkit() {
* @param $params
* An optional array of parameters to pass to the toolkit method.
* @return
- * Mixed values (typically boolean indicating successful operation).
+ * Mixed values (typically Boolean indicating successful operation).
*/
function image_toolkit_invoke($method, $params = array()) {
if ($toolkit = image_get_toolkit()) {