feature 2541 multisize
- admin GUI for choosing derivative parameters + persistence git-svn-id: http://piwigo.org/svn/trunk@12820 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
ec82ebbdcc
commit
95a78ca0d3
9 changed files with 432 additions and 46 deletions
|
|
@ -278,7 +278,7 @@ final class SizingParams
|
|||
|
||||
|
||||
/*how we generate a derivative image*/
|
||||
final class ImageParams
|
||||
final class DerivativeParams
|
||||
{
|
||||
public $type = IMG_CUSTOM;
|
||||
public $last_mod_time = 0; // used for non-custom images to regenerate the cached files
|
||||
|
|
@ -289,6 +289,11 @@ final class ImageParams
|
|||
$this->sizing = $sizing;
|
||||
}
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
return array('last_mod_time', 'sizing');
|
||||
}
|
||||
|
||||
function add_url_tokens(&$tokens)
|
||||
{
|
||||
$this->sizing->add_url_tokens($tokens);
|
||||
|
|
@ -297,7 +302,7 @@ final class ImageParams
|
|||
static function from_url_tokens($tokens)
|
||||
{
|
||||
$sizing = SizingParams::from_url_tokens($tokens);
|
||||
$ret = new ImageParams($sizing);
|
||||
$ret = new DerivativeParams($sizing);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue