mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
multi size:
- fix external imagick issues when rotation was required - fix: derivative were generated continuosly until a first save performed in the admin screen - added sharpen param in the new config screen - increased the sharpen range (10% is less than before) git-svn-id: http://piwigo.org/svn/trunk@14649 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
642d757bd4
commit
40a4dd63f0
8 changed files with 58 additions and 34 deletions
|
@ -51,6 +51,7 @@ final class ImageStdParams
|
|||
private static $undefined_type_map = array();
|
||||
private static $watermark;
|
||||
public static $custom = array();
|
||||
public static $quality=95;
|
||||
|
||||
static function get_all_types()
|
||||
{
|
||||
|
@ -109,11 +110,13 @@ final class ImageStdParams
|
|||
if (!self::$watermark) self::$watermark = new WatermarkParams();
|
||||
self::$custom = @$arr['c'];
|
||||
if (!self::$custom) self::$custom = array();
|
||||
if (isset($arr['q'])) self::$quality = $arr['q'];
|
||||
}
|
||||
else
|
||||
{
|
||||
self::$watermark = new WatermarkParams();
|
||||
self::$type_map = self::get_default_sizes();
|
||||
self::save();
|
||||
}
|
||||
self::build_maps();
|
||||
}
|
||||
|
@ -136,6 +139,7 @@ final class ImageStdParams
|
|||
|
||||
$ser = serialize( array(
|
||||
'd' => self::$type_map,
|
||||
'q' => self::$quality,
|
||||
'w' => self::$watermark,
|
||||
'c' => self::$custom,
|
||||
) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue