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
This commit is contained in:
parent
c3376f59de
commit
c8827c24a4
1 changed files with 2 additions and 0 deletions
|
|
@ -601,6 +601,8 @@ class image_ext_imagick implements imageInterface
|
||||||
function write($destination_filepath)
|
function write($destination_filepath)
|
||||||
{
|
{
|
||||||
$this->add_command('interlace', 'line'); // progressive rendering
|
$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 = $this->imagickdir.'convert';
|
||||||
$exec .= ' "'.realpath($this->source_filepath).'"';
|
$exec .= ' "'.realpath($this->source_filepath).'"';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue