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.inc.php

    r12954 r13038  
    2828  public $rel_path;
    2929
    30   public $coi=null;
    3130  private $size=null;
    3231  private $flags=0;
     
    3534  {
    3635    global $conf;
    37    
     36
    3837    $this->id = $infos['id'];
    3938    $ext = get_extension($infos['path']);
     
    5554    }
    5655
    57     $this->coi = @$infos['coi'];
    5856    if (!$this->size && isset($infos['width']) && isset($infos['height']))
    5957    {
     
    168166    $tokens=array();
    169167    $tokens[] = substr($params->type,0,2);
    170 
    171     if ($params->sizing->max_crop != 0 and !empty($src->coi))
    172     {
    173       $tokens[] = 'ci'.$src->coi;
    174     }
    175168
    176169    if ($params->type==IMG_CUSTOM)
     
    258251      return $this->src_image->get_size();
    259252    }
    260     return $this->params->compute_final_size($this->src_image->get_size(), $this->src_image->coi);
     253    return $this->params->compute_final_size($this->src_image->get_size());
    261254  }
    262255
Note: See TracChangeset for help on using the changeset viewer.