Show
Ignore:
Timestamp:
05/02/12 06:29:56 (13 months ago)
Author:
rvelices
Message:

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)

Files:
1 modified

Legend:

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

    r14581 r14649  
    5252  private static $watermark; 
    5353  public static $custom = array(); 
     54  public static $quality=95; 
    5455 
    5556  static function get_all_types() 
     
    110111      self::$custom = @$arr['c']; 
    111112      if (!self::$custom) self::$custom = array(); 
     113      if (isset($arr['q'])) self::$quality = $arr['q']; 
    112114    } 
    113115    else 
     
    115117      self::$watermark = new WatermarkParams(); 
    116118      self::$type_map = self::get_default_sizes(); 
     119      self::save(); 
    117120    } 
    118121    self::build_maps(); 
     
    137140    $ser = serialize( array( 
    138141      'd' => self::$type_map, 
     142      'q' => self::$quality, 
    139143      'w' => self::$watermark, 
    140144      'c' => self::$custom,