aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--i.php2
-rw-r--r--include/config_default.inc.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/i.php b/i.php
index 2fefd30d9..6b1b88193 100644
--- a/i.php
+++ b/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();
}
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 8af8e256f..2e7a13688 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -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;