SVG Graphs in Email body

292 views
Skip to first unread message

Vikas Thange

unread,
Aug 22, 2016, 9:16:10 AM8/22/16
to Jenkins Developers
Hi All,

Introduction:
I have been using Jenkins from last couple of years. I am really happy to see so many useful plugins available for Jenkins. I am using email-ext plugin with template to send the job wise test report and summary report. 

Problem:
I wanted to add some html and graphs like line,bar,pi (e.g. Test Result Analyzer plugin reports) which are in SVG format.
1. If I just create a HTML email with <SVG> tag it doesn't show graph in inbox as most of email provider (like GMail) doesn't support svg loading in email body.
2. Also css <Style> tags not supported in email instead the inline style attribute is supported.

I looked for any existing plugin / forums to solve my issue but what I found is embedding test trend graph in email only. which is not my requirement. I wanted to add any SVG graph in email body


Proposed Solution:
To add any SVG graph in email body and make all css <style> inline I was thinking of creating a plugin which can parse HTML and convert SVG to <img src=""> and make css inline with style attribute.

Let me know if there is already anything available or any other better way of adding SVG graphs to email body.

I would prefer to develop a new fresh plugin that can support embedding any generic html page with SVG graphs.

Appreciate your inputs.
Vikas T.
Reply all
Reply to author
Forward
0 new messages