From 0536025ff689d05711a40fcd255ee625904bbddb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 20 May 2009 04:04:50 +0000 Subject: Add a default image quality level. There's no UI for it, except Admin > Settings > Advanced. The default is 75. --- core/helpers/graphics.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/helpers/graphics.php') diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 7e0c3e5d..b4729532 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -166,6 +166,7 @@ class graphics_Core { } else { Image::factory($input_file) ->resize($options["width"], $options["height"], $options["master"]) + ->quality(module::get_var("core", "image_quality")) ->save($output_file); } } @@ -183,6 +184,7 @@ class graphics_Core { } Image::factory($input_file) + ->quality(module::get_var("core", "image_quality")) ->rotate($options["degrees"]) ->save($output_file); } @@ -232,6 +234,7 @@ class graphics_Core { Image::factory($input_file) ->composite($options["file"], $x, $y, $options["transparency"]) + ->quality(module::get_var("core", "image_quality")) ->save($output_file); } -- cgit v1.2.3