aboutsummaryrefslogtreecommitdiff
path: root/lib/resize.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-17 18:10:56 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-17 18:10:56 +0000
commit82aa80bd54908ec2934f45d1f270de568adc1c97 (patch)
treeef3d44f26da40a48053b4e8222e8fb91710257e6 /lib/resize.php
parent47a49c851ab285e7e4f48aa29247a8a71fdb9d5c (diff)
downloadelgg-82aa80bd54908ec2934f45d1f270de568adc1c97.tar.gz
elgg-82aa80bd54908ec2934f45d1f270de568adc1c97.tar.bz2
added skeleton for PHP ImageMagick
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)
{