2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

contrib/InfoPanel: bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@7832 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-02 10:49:21 +00:00
parent bf403e0846
commit c8fcb65dcc

View File

@ -315,7 +315,7 @@ sub _btIP_imgData {
my $info = image_info(\$arg); my $info = image_info(\$arg);
my $width = $info->{width}; my $width = $info->{width};
my $height = $info->{height}; my $height = $info->{height};
($width,$height)= _btIP_imgRescale($width,$height,$scale) unless $scale eq '1'; ($width,$height)= _btIP_imgRescale($width,$height,$scale);
my $mimetype = $info->{file_media_type}; my $mimetype = $info->{file_media_type};
my $data = "data:$mimetype;base64,".encode_base64($arg); my $data = "data:$mimetype;base64,".encode_base64($arg);
return ($width,$height,$mimetype,$data); return ($width,$height,$mimetype,$data);
@ -372,7 +372,7 @@ sub btIP_itemPlot {
($width,$height,$mimetype,$svgdata) = _btIP_imgData($svgdata,$scale); ($width,$height,$mimetype,$svgdata) = _btIP_imgData($svgdata,$scale);
$output = "<!-- w: $width h: $height t: $mimetype-->\n"; $output = "<!-- w: $width h: $height t: $mimetype-->\n";
$output .= "<image id=\"$id\" x=\"$x\" y=\"$y\" width=\"".$width."\" height=\"".$height."\" \n"; $output .= "<image id=\"$id\" x=\"$x\" y=\"$y\" width=\"".$width."px\" height=\"".$height."px\" \n";
$output .= "xlink:href=\"$svgdata\" />\n"; $output .= "xlink:href=\"$svgdata\" />\n";
} else { } else {