Product: TIBCO Spotfire®
Rendering Image in table visualization from a URL of a Image Server in TIBCO Spotfire installed client
The documentation for the TIBCO Spotfire installed client with the title "Details on Image from URL Renderer Settings" states that the width and height of the rendered image can be controlled in the visualization only if the website from which you are rendering the image, allows to do so. However, the display size of the image will depend on the table visualization cell size..
The display size of the image in the Spotfire (TIBCO Spotfire installed client or Web Player) depends on the table visualization cell height and width. If an image rendered from the image server is larger than the row height, then Spotfire will scale the image down before it is displayed within the table cell.
For example, let's say that an image rendered from an image server is 200 pixels in height, but the cell height in the table is only 30 pixels, then the image will be displayed with 30 pixels height which is scaled down from what actually it was rendered from the image server.
The resolution of the action image file is not controlled in Spotfire, it depends what is returned from the external web server. Only if the external web server supports it, you may be able to specify a desired width and height of the file in URL parameters so that the web server generates the image of the resolution specified by the parameters in the URL template (for example: http://MyCompany.com/Images/{$}/image?width={$width}&height={$height}). It is the image server that accepts the width and height parameter from the URL (if the image server allows it to do so) and accordingly the image of the given resolution shall be sent to Spotfire. Note: The display size will still depend on the table cell size as described above.
For example, the URL given below can be used for checking the behavior of the rendering of images using the width and height parameters:
https://picturethismaths.files.wordpress.com/2016/03/fig6bigforblog.png?w=400&h=360
The URL given above is a Public URL for the image, which can be used to check the behavior of rendered image using the parameters. Changing the "w" and "h" parameters, which are the width and height, shall depict the behavior for the rendered image. When the width and height is less, the rendered image is blurred as the row height and width of the table are large to fit in the image rendered which will be of low resolution. Attached file "Image_Rendering_1.PNG" can be referred to see the behaviour where the image is blurred.
Whereas, when the "w" and "h" parameters are large enough to render a good resolution image to fit into the cell of the table, the image displayed in the table is a clear image.
See the attached file "Image_Rendering_2.PNG" for reference.
Doc: Details on Image from URL Renderer Settings
Comments
0 comments
Article is closed for comments.