Icon

Write_​Text_​on_​an_​Image_​15303

Example workflow which shows how to put atext overlay over an image. The idea is to usean intermediate SVG which allows to combinethe original image with a text element, andthen re-convert it back to a PNG image.https://forum.knime.com/t/write-text-on-an-image/15303 Read image filesPath to Image + TextCreate an SVG which contains the image and the text overlayCreate a binaryobject from the image (I've found noother way how to access image data in a Java Snippet)Convert the SVG to PNG (for simplicity,I've hard-coded the bounds here, but they could be dynamically supplied by a FV)Node 6 Read Images Table Creator Java Snippet PNGs to BinaryObjects Renderer to Image Column Filter Example workflow which shows how to put atext overlay over an image. The idea is to usean intermediate SVG which allows to combinethe original image with a text element, andthen re-convert it back to a PNG image.https://forum.knime.com/t/write-text-on-an-image/15303 Read image filesPath to Image + TextCreate an SVG which contains the image and the text overlayCreate a binaryobject from the image (I've found noother way how to access image data in a Java Snippet)Convert the SVG to PNG (for simplicity,I've hard-coded the bounds here, but they could be dynamically supplied by a FV)Node 6 Read Images Table Creator Java Snippet PNGs to BinaryObjects Renderer to Image Column Filter

Nodes

Extensions

Links