aboutsummaryrefslogtreecommitdiff
path: root/lib/resize.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resize.php')
-rw-r--r--lib/resize.php36
1 files changed, 27 insertions, 9 deletions
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)
{