mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
0f1b30e862
commit
c58a4016b6
@ -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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user