Ignore:
Timestamp:
May 2, 2012, 6:29:56 AM (12 years 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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/image.class.php

    r13882 r14649  
    288288  static function get_sharpen_matrix($amount)
    289289  {
    290     // Amount should be in the range of 28-10
    291     $amount = round(abs(-28 + ($amount * 0.18)), 2);
     290    // Amount should be in the range of 48-10
     291    $amount = round(abs(-48 + ($amount * 0.38)), 2);
    292292
    293293    $matrix = array(
     
    550550  function rotate($rotation)
    551551  {
     552    if ($rotation==90 || $rotation==270)
     553    {
     554      $tmp = $this->width;
     555      $this->width = $this->height;
     556      $this->height = $tmp;
     557    }
    552558    $this->add_command('rotate', -$rotation);
    553559    $this->add_command('orient', 'top-left');
     
    563569  function resize($width, $height)
    564570  {
    565     $this->add_command('interlace', 'line');
    566571    $this->add_command('filter', 'Lanczos');
    567572    $this->add_command('resize', $width.'x'.$height.'!');
     
    596601  function write($destination_filepath)
    597602  {
     603    $this->add_command('interlace', 'line'); // progressive rendering
     604
    598605    $exec = $this->imagickdir.'convert';
    599606    $exec .= ' "'.realpath($this->source_filepath).'"';
     
    612619    @exec($exec, $returnarray);
    613620
    614     //echo($exec);
     621    ilog($exec);
     622    if (is_array($returnarray) && (count($returnarray)>0) )
     623    {
     624      ilog($returnarray);
     625    }
    615626    return is_array($returnarray);
    616627  }
Note: See TracChangeset for help on using the changeset viewer.