aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/upload.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/actions/upload.php b/actions/upload.php
index f062edc80..b74f72c7b 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -7,7 +7,6 @@
global $CONFIG;
include dirname(dirname(__FILE__)) . "/lib/resize.php";
- include dirname(dirname(__FILE__)) . "/lib/watermark.php";
include dirname(dirname(__FILE__)) . "/lib/exif.php";
// Get common variables
@@ -155,16 +154,10 @@
if ($image_lib == 'ImageMagick') { // ImageMagick command line
- $thumbs = tp_create_imagick_cmdline_thumbnails($file, $prefix, $filestorename);
- if(!count($thumbs)) {
+ if (tp_create_imagick_cmdline_thumbnails($file, $prefix, $filestorename) != true) {
trigger_error('Tidypics warning: failed to create thumbnails - ImageMagick command line', E_USER_WARNING);
}
- $album = get_entity($container_guid);
-
- tp_watermark($thumbs);
-
-
} else if ($image_lib == 'ImageMagickPHP') { // ImageMagick PHP
if (tp_create_imagick_thumbnails($file, $prefix, $filestorename) != true) {