Changeset 13035 for trunk/admin/include


Ignore:
Timestamp:
Feb 5, 2012, 3:58:14 PM (12 years ago)
Author:
rvelices
Message:

multisize

  • watermarks loaded also from local dir
  • fix/simplify algo for cropping
  • imagick use scaleImage (fast) before resizeImage (slow) if the original is a lot bigger than the requested size
File:
1 edited

Legend:

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

    r12956 r13035  
    424424  {
    425425    $this->image->setInterlaceScheme(Imagick::INTERLACE_LINE);
     426    if ($this->get_width()%2 == 0 && $this->get_height()%2 == 0
     427      && $this->get_width() > 3*$width)
     428    {
     429      $this->image->scaleImage($this->get_width()/2, $this->get_height()/2);
     430    }
    426431    return $this->image->resizeImage($width, $height, Imagick::FILTER_LANCZOS, 0.9);
    427432  }
Note: See TracChangeset for help on using the changeset viewer.