From c8827c24a4e5bf106f39d5bf8a536c539d33b107 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 3 May 2012 18:07:51 +0000 Subject: 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 --- admin/include/image.class.php | 2 ++ 1 file changed, 2 insertions(+) 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).'"'; -- cgit v1.2.3