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:
rvelices
2012-02-06 20:59:20 +00:00
parent 8d86e7b399
commit 0d277219fc
15 changed files with 2204 additions and 28 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ function char_to_fraction($c)
function fraction_to_char($f)
{
return ord('a') + round($f*25);
return chr(ord('a') + round($f*25));
}
/** small utility to manipulate a 'rectangle'*/
@@ -257,9 +257,9 @@ final class DerivativeParams
$this->sizing->add_url_tokens($tokens);
}
function compute_final_size($in_size, $coi)
function compute_final_size($in_size)
{
$this->sizing->compute( $in_size, $coi, $crop_rect, $scale_size );
$this->sizing->compute( $in_size, null, $crop_rect, $scale_size );
return $scale_size != null ? $scale_size : $in_size;
}