aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/image.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-05-03 18:07:51 +0000
committerrvelices <rv-github@modusoptimus.com>2012-05-03 18:07:51 +0000
commitc8827c24a4e5bf106f39d5bf8a536c539d33b107 (patch)
treef0147504657441aea3ebd2eabb4c8091e82ce32b /admin/include/image.class.php
parentc3376f59de01a771ab301febd26d2d5447d46b3f (diff)
multi size external imagemagick use 4:2:2 chroma subsampling as imagick extension (reduce file size by 20-30% with "almost" no human perception)
git-svn-id: http://piwigo.org/svn/trunk@14723 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/image.class.php')
-rw-r--r--admin/include/image.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index 53516f62d..8ab6d9384 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -601,6 +601,8 @@ class image_ext_imagick implements imageInterface
function write($destination_filepath)
{
$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' );
$exec = $this->imagickdir.'convert';
$exec .= ' "'.realpath($this->source_filepath).'"';