aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/image.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 2781ba984..1d1b70383 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -458,6 +458,8 @@ class image_imagick implements imageInterface
function write($destination_filepath)
{
+ // use 4:2:2 chroma subsampling (reduce file size by 20-30% with "almost" no human perception)
+ $this->image->setSamplingFactors( array(2,1) );
return $this->image->writeImage($destination_filepath);
}
}