Changeset 3271


Ignore:
Timestamp:
05/06/09 00:16:05 (10 years ago)
Author:
plg
Message:

merge r3270 from branch 2.0 to trunk

feature 981 added: ability to set the compression level for thumbnail creation.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r3049 r3271  
    119119      return false; 
    120120    } 
    121     imagejpeg($destImage, $dest_file); 
     121    imagejpeg($destImage, $dest_file, $conf['tn_compression_level']); 
    122122    // freeing memory ressources 
    123123    imagedestroy( $srcImage ); 
  • trunk/include/config_default.inc.php

    r3136 r3271  
    150150// tn_height : default height for thumbnails creation 
    151151$conf['tn_height'] = 128; 
     152 
     153// tn_compression_level: compression level for thumbnail creation. 0 is low 
     154// quality, 100 is high quality. 
     155$conf['tn_compression_level'] = 75; 
    152156 
    153157// show_version : shall the version of Piwigo be displayed at the 
Note: See TracChangeset for help on using the changeset viewer.