aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/photos_add_direct_prepare.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-12-12 10:34:55 +0000
committerplegall <plg@piwigo.org>2013-12-12 10:34:55 +0000
commit483cce26121918960163e501b4feb132572cc76d (patch)
treeffa138420b7c9d51a0a0e6038c7b59cc5ebf4988 /admin/include/photos_add_direct_prepare.inc.php
parent97371a948ae1d212a61c8200ce93380d39ee2fa1 (diff)
feature 2869 added: support TIFF files on web upload (requires ext_imagick)
git-svn-id: http://piwigo.org/svn/trunk@25929 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/photos_add_direct_prepare.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/include/photos_add_direct_prepare.inc.php b/admin/include/photos_add_direct_prepare.inc.php
index 6b53aaa83..bd4dc23dd 100644
--- a/admin/include/photos_add_direct_prepare.inc.php
+++ b/admin/include/photos_add_direct_prepare.inc.php
@@ -144,6 +144,13 @@ $template->assign(
);
$upload_file_types = 'jpeg, png, gif';
+
+if (pwg_image::get_library() == 'ext_imagick')
+{
+ $upload_file_types.= ', tiff';
+ $template->assign('tif_enabled', true);
+}
+
if ('html' == $upload_mode)
{
$upload_file_types.= ', zip';