From 82aa80bd54908ec2934f45d1f270de568adc1c97 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 17 May 2009 18:10:56 +0000 Subject: added skeleton for PHP ImageMagick --- lib/resize.php | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'lib/resize.php') diff --git a/lib/resize.php b/lib/resize.php index bf63db82d..1c28c49de 100644 --- a/lib/resize.php +++ b/lib/resize.php @@ -8,10 +8,10 @@ /** * Create thumbnails using PHP GD Library * - * @param ElggFile - * @param string - * @param string - * @return bool + * @param ElggFile holds the image that was uploaded + * @param string folder to store thumbnail in + * @param string name of the thumbnail + * @return bool true on success */ function tp_create_gd_thumbnails($file, $prefix, $filestorename) { @@ -83,14 +83,32 @@ return true; } - + + /** + * Create thumbnails using PHP ImageMagick Library + * + * @param ElggFile holds the image that was uploaded + * @param string folder to store thumbnail in + * @param string name of the thumbnail + * @return bool true on success + */ + function tp_create_imagick_thumbnails($file, $prefix, $filestorename) + { + global $CONFIG; + + $mime = $file->getMimeType(); + + return false; // not implemented yet + } + + /** * Create thumbnails using ImageMagick executables * - * @param ElggFile - * @param string - * @param string - * @return bool + * @param ElggFile holds the image that was uploaded + * @param string folder to store thumbnail in + * @param string name of the thumbnail + * @return bool true on success */ function tp_create_imagick_cmdline_thumbnails($file, $prefix, $filestorename) { -- cgit v1.2.3