aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-06-29 22:23:49 +0000
committerplegall <plg@piwigo.org>2012-06-29 22:23:49 +0000
commit9ee698734df58a4c126b618f1e60ad61214429d4 (patch)
tree4f4ec692976ffc777d594ee327013328b686bb08
parente21e16e76e0b0538f6acaef4b06a286e93702288 (diff)
bug 2672: deactivate sampling-factor (for now)
git-svn-id: http://piwigo.org/svn/branches/2.4@16210 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/image.class.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index 4eeceeb51..5ccab294f 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -607,7 +607,13 @@ class image_ext_imagick implements imageInterface
{
$this->add_command('interlace', 'line'); // progressive rendering
// use 4:2:2 chroma subsampling (reduce file size by 20-30% with "almost" no human perception)
- $this->add_command('sampling-factor', '4:2:2' );
+ //
+ // option deactivated for Piwigo 2.4.1, it doesn't work fo old versions
+ // of ImageMagick, see bug:2672. To reactivate once we have a better way
+ // to detect IM version and when we know which version supports this
+ // option
+ //
+ // $this->add_command('sampling-factor', '4:2:2' );
$exec = $this->imagickdir.'convert';
$exec .= ' "'.realpath($this->source_filepath).'"';