diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-02-09 10:35:04 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-09 10:35:04 -0800 |
| commit | 7613d886f98299c36d667908c52401bd07eef1e0 (patch) | |
| tree | a31c4425c6a18a2691b3bf33f86c6a0dcff27689 /modules/gallery/helpers/gallery_graphics.php | |
| parent | f4ecb7e65850ca0cac9f7d963c34f7cd20ee9446 (diff) | |
| parent | 0312d1b071bd4434ddb3f82888b0323da6bf3732 (diff) | |
Merge pull request #128 from shadlaws/fix_1994
#1994 - Make get_file_metadata throw an exception if photo or movie is unidentifiable/illegal.
Diffstat (limited to 'modules/gallery/helpers/gallery_graphics.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_graphics.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_graphics.php b/modules/gallery/helpers/gallery_graphics.php index b78bd9a7..eb76353f 100644 --- a/modules/gallery/helpers/gallery_graphics.php +++ b/modules/gallery/helpers/gallery_graphics.php @@ -172,6 +172,11 @@ class gallery_graphics_Core { module::event("graphics_composite_completed", $input_file, $output_file, $options, $item); } catch (ErrorException $e) { + // Unlike rotate and resize, composite catches its exceptions here. This is because + // composite is typically called for watermarks. If during thumb/resize generation + // the watermark fails, we'd still like the image resized, just without its watermark. + // If the exception isn't caught here, graphics::generate will replace it with a + // placeholder. Kohana_Log::add("error", $e->getMessage()); } } |
