Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
We have NP April 2019. we upgraded recently from Feb 2018. It overrides the image sizes when generating reports. See below example:
In the old version in NP when I add a chart code into an html template like the below:
<img src="%%CH1163%%" width="323" height="275" border="0" alt="CH1163" />
NP will replace %%CH1163%% with the image base 64 string and leave everything else intact. The new NP replaces %%CH1163%% with the image base 64 string and replaces height and width properties with its own values.
so I get something like the below:
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" width="450" height="330" border="0" alt="CH1163" />
whereas what I used to get before was:
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" width="323" height="275" border="0" alt="CH1163" />
Could you please help?
Note: this question was edited to give a clearer idea of the issue.
That doesn't work in all email clients.
Hello,
Sorry for late reply. Upon removing the slash it started working again, I came to know of that before your message. That's why I didn't respond earlier. But thanks for your help. /> is the standard is for HTML5.
Also I added all my charts inside containers, because sometimes when NPrinting scales them. It used to eat the text and part of the chart. But when they are inside containers they are scaled normally.