summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
authorjhilden <jakobhilden@gmail.com>2009-08-29 19:12:57 -0400
committerjhilden <jakobhilden@gmail.com>2009-08-29 19:12:57 -0400
commited9be096535dfbac4d62e0cc74f416a71f67648d (patch)
tree3301809705b4418b97673d8f006332111b42fa5f /modules/gallery/helpers/graphics.php
parent39559fdfd09491dce669d0351768fe2b13ccdd03 (diff)
parent0aceba6f48e5542d3edfbb1f195af50187adbac4 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index 7dc46eeb..2892011f 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -206,10 +206,15 @@ class graphics_Core {
// Image would get upscaled; do nothing
copy($input_file, $output_file);
} else {
+ try {
Image::factory($input_file)
->resize($options["width"], $options["height"], $options["master"])
->quality(module::get_var("gallery", "image_quality"))
+ ->sharpen(module::get_var("gallery", "image_sharpen"))
->save($output_file);
+ } catch (Exception $e) {
+ Kohana::log("error", $e->getMessage());
+ }
}
module::event("graphics_resize_completed", $input_file, $output_file, $options);