Changeset 3270


Ignore:
Timestamp:
05/05/09 23:42:58 (10 years ago)
Author:
plg
Message:

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

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/thumbnail.php

    r3046 r3270  
    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 ); 
  • branches/2.0/include/config_default.inc.php

    r3137 r3270  
    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.