The following node is available in the Open Source KNIME predictive analytics and data mining platform version 2.7.1. Discover over 1000 other nodes, as well as enterprise functionality at
http://knime.com.
Image to Report
The incoming image is provided as a data set to the KNIME
Report Designer.
Dialog Options
- Use custom image scaling
- If checked, the image will be
scaled according to the specified width and height settings. Otherwise the
default size of the involved renderer is used.
It is recommended to try this option if the image quality in the report
does not meet the expectations. Depending on the renderer scaling the
images here may provide better results.
- Export Image As
- Sends any image or rendered graphics contained in the table
in the selected format to BIRT (the reporting library). PNG is the default
and will result in a pixel graphic without further modification in the report.
SVG is currently in a development stage and is supported in BIRT only with
few modifications to the report. These are the steps:
- Select SVG in this dialog, possibly change the resolution in the image scaling fields.
- Switch to the reporting, make sure nothing is selected in the report editor and
switch to the "Script" tab. Select the "beforeRender" script and enter this command
"KNIME.enableSVGImagesInPDF(reportContext)" (no quotes).
- Switch back to main report editor (tab "Layout"), design the report and add the dynamic image
by linking it to the KNIME data source.
- Select the dynamic image report element and choose in the "Property Editor - Image" view under
"Properties" the tab "Advanced" (note, you might need to scroll). In the property list search
for "Type expression" and edit the entry. Enter "image/svg+xml", including the quote characters.
- Height
- The custom height of the image.
- Width
- The custom width of the image.
Ports
Views
- Table View
-
Displays the data that will go into the report.
This node is contained in KNIME Reporting Nodes
provided by KNIME.com, Zurich, Switzerland.