aboutsummaryrefslogtreecommitdiff
path: root/actions/imtest.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/imtest.php')
-rw-r--r--actions/imtest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/actions/imtest.php b/actions/imtest.php
new file mode 100644
index 000000000..6ab2b7b8f
--- /dev/null
+++ b/actions/imtest.php
@@ -0,0 +1,19 @@
+<?php
+ /**
+ * Tisypics ImageMagick Location Test
+ *
+ * Called through ajax
+ */
+
+ $location = $_GET['location'];
+
+ $command = $location . "convert -version";
+
+ $result = system($command, $return_val);
+
+ if ($return_val == 0) {
+ echo $result;
+ } else {
+ echo "Unable to run ImageMagick. Please check the path.";
+ }
+?>