Ignore:
Timestamp:
Feb 6, 2012, 9:59:20 PM (12 years ago)
Author:
rvelices
Message:

multisize - added the coi (still to affine the admin ui + language)
multisize - derivatives can be revuild from a larger derviative instead of the original

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/derivative_params.inc.php

    r13035 r13038  
    4646function fraction_to_char($f)
    4747{
    48         return ord('a') + round($f*25);
     48        return chr(ord('a') + round($f*25));
    4949}
    5050
     
    258258  }
    259259
    260   function compute_final_size($in_size, $coi)
    261   {
    262     $this->sizing->compute( $in_size, $coi, $crop_rect, $scale_size );
     260  function compute_final_size($in_size)
     261  {
     262    $this->sizing->compute( $in_size, null, $crop_rect, $scale_size );
    263263    return $scale_size != null ? $scale_size : $in_size;
    264264  }
Note: See TracChangeset for help on using the changeset viewer.