summaryrefslogtreecommitdiff
path: root/core/helpers/graphics.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-20 04:04:50 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-20 04:04:50 +0000
commit0536025ff689d05711a40fcd255ee625904bbddb (patch)
treee78343ab10949683ee3da5457634726772c2d7b3 /core/helpers/graphics.php
parent006e0b4f28750b244bba5ea45d64eb8336cdb63b (diff)
Add a default image quality level. There's no UI for it, except Admin
> Settings > Advanced. The default is 75.
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r--core/helpers/graphics.php3
1 files changed, 3 insertions, 0 deletions
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);
}