Image size in Email is not as expected when opened in Outlook Desktop Client
Image size in the email sent on Outlook Desktop Client by NPrinting server is not same as expected. When same email is opened on Outlook Web or other Email clients like Gmail ,size of the image is correct and as expected. Image size is also correct when opened in NPrinting Designer Preview and export report.
This is an Outlook behavior, Outlook sets a maximum display width and height which are dependent on the end user screen and scales down images to fit this maximum constraint. The final size depends on the scale of the original image.
As this behavior is independent from NPrinting and only due to Outlook display , there are some workarounds on this, but not a solution :
Instead of viewing the image in outlook, right click on the image, save it and view it in image viewer. This will show the image in full size without any downscaling.
Attach the report to the image in addition to embedding, so it can be opened in any browser. Customer can also choose to generate the report using a different template format (e.g. insert the image in Excel) at their convenience
Split the table in different images using filters and include those in the report.
Create a straight table in the Sense app to show the same data of the pivot table (If you are using image, you cannot use pivoting functions anyway) and include the table in the HTML file instead of the image.
Some of the Best Practices to improve quality and size of the Image :
1. Clean up template and select display size for the image
In the template, remove any explicit height and width setting in the image tag. This will avoid unwanted resizing of the image which will ruin the quality and have no visible effect in Outlook client
For display area settings, please use the bare minimum needed to have the full size image in the report for best performance.
2. Set renderer parameters to improve image quality
By default, images with width or height over 3000px will use an upscaling algorithm that may cause visual degrades. To change this and use the native rendering please do the following
On NPrinting June2020 and higher, stop Scheduler service and open as administrator the file \Program Files\NPrintingServer\NPrinting\Scheduler\renderer.config to edit (may require administrator permissions)
On prior version, stop Engine service and open as administrator the file \Program Files\NPrintingServer\NPrinting\Engine\engine.config to edit (may require administrator permissions)
If the width found at point 1 is higher than 3000, add to the XML configuration <add key="webrenderer-max-image-width-px" value="7000"/>
If the height is over 3000, which should be the customer case, add the key<add key="webrenderer-max-image-height-px" value="7000"/>
3. Task settings
Use NORMAL quality for the report in task instead of HIGH
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.