From 902c8f19278f389c53b23fcfbd0a0fe87a733372 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 22 Dec 2010 15:15:35 +0000 Subject: 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 --- admin/photos_add.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'admin/photos_add.php') 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(); -- cgit v1.2.3