mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
98_SVG: plotAsPng debug removed by Boris
git-svn-id: https://svn.fhem.de/fhem/trunk@4187 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
38838b0980
commit
6f5d7a5431
@ -1494,7 +1494,7 @@ sub plotAsPng(@) {
|
|||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Debug "FW_wname= $FW_wname, plotName= $plotName[0]";
|
#Debug "FW_wname= $FW_wname, plotName= $plotName[0]";
|
||||||
|
|
||||||
$FW_RET = undef;
|
$FW_RET = undef;
|
||||||
$FW_webArgs{dev} = $plotName[0];
|
$FW_webArgs{dev} = $plotName[0];
|
||||||
@ -1506,8 +1506,8 @@ sub plotAsPng(@) {
|
|||||||
|
|
||||||
($mimetype, $svgdata) = SVG_showLog("unused");
|
($mimetype, $svgdata) = SVG_showLog("unused");
|
||||||
|
|
||||||
Debug "MIME type= $mimetype";
|
#Debug "MIME type= $mimetype";
|
||||||
Debug "SVG= $svgdata";
|
#Debug "SVG= $svgdata";
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
require Image::LibRSVG;
|
require Image::LibRSVG;
|
||||||
@ -1515,7 +1515,10 @@ sub plotAsPng(@) {
|
|||||||
$rsvg->loadImageFromString($svgdata);
|
$rsvg->loadImageFromString($svgdata);
|
||||||
$pngImg = $rsvg->getImageBitmap();
|
$pngImg = $rsvg->getImageBitmap();
|
||||||
};
|
};
|
||||||
Debug "Error: $@" if($@);
|
Log3 $FW_wname, 1,
|
||||||
|
"plotAsPng(): Cannot create plot as png image for \"" .
|
||||||
|
join(" ", @plotName) . "\": $@"
|
||||||
|
if($@ or !defined($pngImg) or ($pngImg eq ""));
|
||||||
|
|
||||||
return $pngImg if $pngImg;
|
return $pngImg if $pngImg;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user