made problems with GD non-lethal

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1557 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-05-12 09:26:36 +00:00
parent 0f1b30e862
commit c58a4016b6

View File

@ -320,6 +320,10 @@ RSS_returnJPEG($) {
my $S= GD::Image->newTrueColor($width,$height);
$S->colorAllocate(0,0,0); # black is the background
# wrap to make problems with GD non-lethal
eval {
#
# set the background
#
@ -373,6 +377,8 @@ RSS_returnJPEG($) {
#
RSS_evalLayout($S, $name, $defs{$name}{fhem}{layout});
}; warn $@ if $@;
#
# return jpeg image
#