diff --git a/i.php b/i.php index 333c25baa..cd80e5652 100644 --- a/i.php +++ b/i.php @@ -234,7 +234,7 @@ function parse_request() { ierror('Invalid crop', 400); } - $greatest = ImageStdParams::get_by_type(IMG_XXLARGE); + $greatest = ImageStdParams::get_by_type(IMG_4XLARGE); $key = array(); $params->add_url_tokens($key); diff --git a/include/derivative_std_params.inc.php b/include/derivative_std_params.inc.php index 44acedee6..b39428940 100644 --- a/include/derivative_std_params.inc.php +++ b/include/derivative_std_params.inc.php @@ -20,6 +20,8 @@ define('IMG_MEDIUM', 'medium'); define('IMG_LARGE', 'large'); define('IMG_XLARGE', 'xlarge'); define('IMG_XXLARGE', 'xxlarge'); +define('IMG_3XLARGE', '3xlarge'); +define('IMG_4XLARGE', '4xlarge'); define('IMG_CUSTOM', 'custom'); @@ -53,7 +55,7 @@ final class ImageStdParams /** @var string[] */ private static $all_types = array( IMG_SQUARE, IMG_THUMB, IMG_XXSMALL, IMG_XSMALL, IMG_SMALL, - IMG_MEDIUM, IMG_LARGE, IMG_XLARGE, IMG_XXLARGE + IMG_MEDIUM, IMG_LARGE, IMG_XLARGE, IMG_XXLARGE, IMG_3XLARGE, IMG_4XLARGE ); /** @var DerivativeParams[] */ private static $all_type_map = array(); @@ -214,6 +216,8 @@ final class ImageStdParams IMG_LARGE => new DerivativeParams( SizingParams::classic(1008,756) ), IMG_XLARGE => new DerivativeParams( SizingParams::classic(1224,918) ), IMG_XXLARGE => new DerivativeParams( SizingParams::classic(1656,1242) ), + IMG_3XLARGE => new DerivativeParams( SizingParams::classic(2232,1674) ), + IMG_4XLARGE => new DerivativeParams( SizingParams::classic(3000,2250) ), ); $now = time(); foreach($arr as $params) diff --git a/install/db/177-database.php b/install/db/177-database.php new file mode 100644 index 000000000..49004fb84 --- /dev/null +++ b/install/db/177-database.php @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/language/en_UK/common.lang.php b/language/en_UK/common.lang.php index fb798a993..a62397ed6 100644 --- a/language/en_UK/common.lang.php +++ b/language/en_UK/common.lang.php @@ -516,3 +516,5 @@ $lang['This API key was manually revoked on %s'] = 'This API key was manually re $lang['Edit API Key'] = 'Edit API Key'; $lang['Do you really want to revoke the "%s" API key?'] = 'Do you really want to revoke the "%s" API key?'; $lang['To manage your API keys, please log in with your username/password.'] = 'To manage your API keys, please log in with your username/password.'; +$lang['3xlarge'] = '3XL - extra huge'; +$lang['4xlarge'] = '4XL - gigantique'; \ No newline at end of file diff --git a/language/fr_FR/common.lang.php b/language/fr_FR/common.lang.php index a86f22915..f139b2c5e 100644 --- a/language/fr_FR/common.lang.php +++ b/language/fr_FR/common.lang.php @@ -515,3 +515,5 @@ $lang['This API key was manually revoked on %s'] = 'Cette clé API a été révo $lang['Edit API Key'] = 'Modifier la clé API'; $lang['Do you really want to revoke the "%s" API key?'] = 'Voulez-vous vraiment révoquer la clé API "%s" ?'; $lang['To manage your API keys, please log in with your username/password.'] = 'Pour gérer vos clés API, veuillez vous connecter avec votre nom d\'utilisateur/mot de passe.'; +$lang['3xlarge'] = '3XL - très énorme'; +$lang['4xlarge'] = '4XL - gigantesque'; diff --git a/ws.php b/ws.php index 3bbb2032d..98883c983 100644 --- a/ws.php +++ b/ws.php @@ -173,7 +173,7 @@ function ws_addDefaultMethods( $arr ) array_merge(array( 'types' => array('default'=>null, 'flags'=>WS_PARAM_FORCE_ARRAY, - 'info'=>'square, thumb, 2small, xsmall, small, medium, large, xlarge, xxlarge'), + 'info'=>'square, thumb, 2small, xsmall, small, medium, large, xlarge, xxlarge, 3xlarge, 4xlarge'), 'ids' => array('default'=>null, 'flags'=>WS_PARAM_FORCE_ARRAY, 'type'=>WS_TYPE_ID),