mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +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
|
@ -454,8 +454,6 @@ switch ($page['section'])
|
|||
$disabled = array();
|
||||
}
|
||||
|
||||
$common_quality = 50;
|
||||
|
||||
$tpl_vars = array();
|
||||
foreach(ImageStdParams::get_all_types() as $type)
|
||||
{
|
||||
|
@ -486,17 +484,11 @@ switch ($page['section'])
|
|||
$tpl_var['minw'] = $tpl_var['minh'] = "";
|
||||
}
|
||||
$tpl_var['sharpen'] = $params->sharpen;
|
||||
$tpl_var['quality'] = $params->quality;
|
||||
|
||||
if ($params->quality > $common_quality and $tpl_var['enabled'])
|
||||
{
|
||||
$common_quality = $params->quality;
|
||||
}
|
||||
}
|
||||
$tpl_vars[$type]=$tpl_var;
|
||||
}
|
||||
$template->assign('derivatives', $tpl_vars);
|
||||
$template->assign('resize_quality', $common_quality);
|
||||
$template->assign('resize_quality', ImageStdParams::$quality);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue