aboutsummaryrefslogtreecommitdiffstats
path: root/admin/photos_add.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-22 15:15:35 +0000
committerplegall <plg@piwigo.org>2010-12-22 15:15:35 +0000
commit902c8f19278f389c53b23fcfbd0a0fe87a733372 (patch)
treec656c64325a4bd3f4b5b889c687ddc4111b6082d /admin/photos_add.php
parent48aa7f582191b39bc4b94fd2b2fc7a57523b95af (diff)
feature 2077 added: when ImageMagick is active, ability to remove or resize
the high definition version of the photo. git-svn-id: http://piwigo.org/svn/trunk@8227 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/photos_add.php')
-rw-r--r--admin/photos_add.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/admin/photos_add.php b/admin/photos_add.php
index 54db3113c..889395985 100644
--- a/admin/photos_add.php
+++ b/admin/photos_add.php
@@ -103,6 +103,43 @@ $upload_form_config = array(
'can_be_null' => false,
'error_message' => l10n('The thumbnail image quality must be a number between %d and %d'),
),
+
+ 'hd_keep' => array(
+ 'default' => true,
+ 'can_be_null' => false,
+ ),
+
+ 'hd_resize' => array(
+ 'default' => false,
+ 'can_be_null' => false,
+ ),
+
+ 'hd_maxwidth' => array(
+ 'default' => 2000,
+ 'min' => 500,
+ 'max' => 20000,
+ 'pattern' => '/^\d+$/',
+ 'can_be_null' => false,
+ 'error_message' => l10n('The high definition maximum width must be a number between %d and %d'),
+ ),
+
+ 'hd_maxheight' => array(
+ 'default' => 2000,
+ 'min' => 500,
+ 'max' => 20000,
+ 'pattern' => '/^\d+$/',
+ 'can_be_null' => false,
+ 'error_message' => l10n('The high definition maximum height must be a number between %d and %d'),
+ ),
+
+ 'hd_quality' => array(
+ 'default' => 95,
+ 'min' => 50,
+ 'max' => 100,
+ 'pattern' => '/^\d+$/',
+ 'can_be_null' => false,
+ 'error_message' => l10n('The high definition image quality must be a number between %d and %d'),
+ ),
);
$inserts = array();