summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-08-08 07:46:09 +0000
committerDries Buytaert <dries@buytaert.net>2007-08-08 07:46:09 +0000
commit232061b7994df81a94f0890541fc15fdd2eaf6f1 (patch)
tree14ef58079362d57970dec4dada28ed7150387f8d /includes
parent68ac23cb6ed0d54b844ca5151977fdb05c294f6a (diff)
downloadbrdo-232061b7994df81a94f0890541fc15fdd2eaf6f1.tar.gz
brdo-232061b7994df81a94f0890541fc15fdd2eaf6f1.tar.bz2
- Patch #148346 by drewish: added PHPdoc.
Diffstat (limited to 'includes')
-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()) {