Luxbum.net - Script de galerie photo

Changeset 198

Show
Ignore:
Timestamp:
05/15/07 00:03:00 (2 years ago)
Author:
nicolas
Message:

test of lower quality for better image generation time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/api/inc/imagetoolkit.imagemagick.php

    r189 r198  
    1818         // Crop method 
    1919         if ($this->mode == 'crop') { 
    20             $cmd = 'convert -gravity center -crop %dx%d+%d+%d +repage %s %s'; 
     20            $cmd = 'convert -quality 80 -gravity center -crop %dx%d+%d+%d +repage %s %s'; 
    2121            $cmd = sprintf($cmd,  
    2222                           $this->cropW, $this->cropH, 
     
    2626            exec($cmd); 
    2727 
    28             $cmd = 'convert -resize %dx%d -geometry %dx%d %s %s'; 
     28            $cmd = 'convert -quality 80 -resize %dx%d -geometry %dx%d %s %s'; 
    2929            $cmd = sprintf($cmd,  
    3030                           $this->imageDestWidth, $this->imageDestHeight, 
     
    3636         // Other methods 
    3737         else { 
    38             $cmd = 'convert -resize %dx%d -geometry %dx%d %s %s'; 
     38            $cmd = 'convert -quality 80 -resize %dx%d -geometry %dx%d %s %s'; 
    3939            $cmd = sprintf($cmd,  
    4040                           $this->imageDestWidth, $this->imageDestHeight,