diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 16:38:53 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 16:38:53 -0700 |
commit | 878b9c91b234f464eb9e1a3bdfbd0e6285a1a0e7 (patch) | |
tree | d5593b4f26aac65a410dad535c270bf3aedd7c57 | |
parent | a2258b2232760032f4920fce6eccd40414aff8cc (diff) |
Remove try/catch in resize() since that will swallow any exceptions
that we generate when resizing.
-rw-r--r-- | modules/gallery/helpers/graphics.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php index 2892011f..a20c58dd 100644 --- a/modules/gallery/helpers/graphics.php +++ b/modules/gallery/helpers/graphics.php @@ -206,15 +206,11 @@ 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); |