mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
multisize - added the coi (still to affine the admin ui + language)
multisize - derivatives can be revuild from a larger derviative instead of the original git-svn-id: http://piwigo.org/svn/trunk@13038 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
8d86e7b399
commit
0d277219fc
15 changed files with 2204 additions and 28 deletions
|
@ -72,7 +72,7 @@ final class ImageStdParams
|
|||
{
|
||||
return self::$all_type_map[$type];
|
||||
}
|
||||
|
||||
|
||||
static function get_custom($w, $h, $crop=0, $minw=null, $minh=null)
|
||||
{
|
||||
$params = new DerivativeParams( new SizingParams( array($w,$h), $crop, array($minw,$minh)) );
|
||||
|
@ -103,6 +103,8 @@ final class ImageStdParams
|
|||
self::$type_map = $arr['d'];
|
||||
self::$watermark = @$arr['w'];
|
||||
if (!self::$watermark) self::$watermark = new WatermarkParams();
|
||||
self::$custom = @$arr['c'];
|
||||
if (!self::$custom) self::$custom = array();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -134,7 +136,7 @@ final class ImageStdParams
|
|||
{
|
||||
self::$watermark = $watermark;
|
||||
}
|
||||
|
||||
|
||||
static function set_and_save($map)
|
||||
{
|
||||
self::$type_map = $map;
|
||||
|
@ -176,7 +178,7 @@ final class ImageStdParams
|
|||
$params->use_watermark = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static function build_maps()
|
||||
{
|
||||
foreach (self::$type_map as $type=>$params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue