Skip to content

Commit

Permalink
merge r23498 from branch 2.5 to trunk
Browse files Browse the repository at this point in the history
feature 2929: strip metadata on configurable threshold



git-svn-id: http://piwigo.org/svn/trunk@23499 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jun 24, 2013
1 parent e41f9bd commit f599ea7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion i.php
Expand Up @@ -609,7 +609,7 @@ function send_derivative($expires)
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();
}
Expand Down
4 changes: 4 additions & 0 deletions include/config_default.inc.php
Expand Up @@ -780,6 +780,10 @@
// '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;

Expand Down

0 comments on commit f599ea7

Please sign in to comment.