merge r23498 from branch 2.5 to trunk
feature 2929: strip metadata on configurable threshold git-svn-id: http://piwigo.org/svn/trunk@23499 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
e41f9bddc9
commit
f599ea711c
2 changed files with 5 additions and 1 deletions
2
i.php
2
i.php
|
@ -609,7 +609,7 @@ if (!$changes)
|
|||
ierror( $page['src_url'], 301);
|
||||
}
|
||||
|
||||
if ($d_size[0]*$d_size[1] < 256000)
|
||||
if ($d_size[0]*$d_size[1] < $conf['derivatives_strip_metadata_threshold'])
|
||||
{// strip metadata for small images
|
||||
$image->strip();
|
||||
}
|
||||
|
|
|
@ -780,6 +780,10 @@ $conf['chmod_value']= substr_compare(PHP_SAPI, 'apa', 0, 3)==0 ? 0777 : 0755;
|
|||
// 'small', 'medium' or 'large'
|
||||
$conf['derivative_default_size'] = 'medium';
|
||||
|
||||
// below which size (in pixels, ie width*height) do we remove metadata
|
||||
// EXIF/IPTC... from derivative?
|
||||
$conf['derivatives_strip_metadata_threshold'] = 256000;
|
||||
|
||||
//Maximum Ajax requests at once, for thumbnails on-the-fly generation
|
||||
$conf['max_requests']=3;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue