PSWriteHTML icon indicating copy to clipboard operation
PSWriteHTML copied to clipboard

Feature Request: New-HTML with Email Safe Content

Open ipxfer opened this issue 4 years ago • 3 comments

I'm trying to email the HTML output by first converting to an image but not having too much luck with it - possible due to complex javascript. I tried Chrome comand line and wkhtmltoimage to convert html but unsuccessful getting an image with full render.

I've noticed that you already have "Download PNG" feature in the html report. I'm thinking if you can have that as an output option and not the actual html file. This would allow us to embed the output to the body of the email.

Thanks.

ipxfer avatar Jul 13 '20 18:07 ipxfer

Why would you convert your output to an image? Can you give me scenario and some additional information?

PrzemyslawKlys avatar Jul 13 '20 21:07 PrzemyslawKlys

Basically, I want to display your html output as a body of an email. Current output with javascript showing barcharts and wave rendering won't allowed that. I don't want to send it as a attachment either. Image, I would think, is the simplest way to accomplish this.

ipxfer avatar Jul 13 '20 21:07 ipxfer

Download as PNG is option from charts js. I don't think you can tell it to save as PNG without actually displaying it. I was exploring an option of charts in an email but couldn't get it to reliably display in all clients.

Not sure if you can reliably convert HTML to an image with JS or anything else for that matter.

PrzemyslawKlys avatar Jul 13 '20 21:07 PrzemyslawKlys