diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-29 17:34:39 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-29 17:34:39 -0600 |
| commit | c9d2e222662746c1a8d1866dcd480f1440898735 (patch) | |
| tree | 938b7b88efbf55c9228932a9cf6afcc8c38a1c90 /modules/gallery/helpers/graphics.php | |
| parent | 75ee962c9e1b6a0c24928f80245430db71780a3d (diff) | |
| parent | a1ce2d3f0aff6dcb7149f2d7327a10079e5c78f8 (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.php | 5 |
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); |
