summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_graphics.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-15 13:00:26 -0500
committerBharat Mediratta <bharat@menalto.com>2013-02-15 13:00:26 -0500
commit96a01c86d9bd15f9dc91c60be6f236deab2ffad9 (patch)
treedb06b9a5ab2b03a0475f536b9792435059f999e9 /modules/gallery/helpers/gallery_graphics.php
parent16b8b8d16b8b46fe1e60b2a86f9ee5883dbc892f (diff)
parent5b6c138da1e53e93e4de8079885fcef29d12e673 (diff)
Merge branch 'master' into jquery_190
Diffstat (limited to 'modules/gallery/helpers/gallery_graphics.php')
-rw-r--r--modules/gallery/helpers/gallery_graphics.php5
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());
}
}