harmslab / TreeViewer

Interactive Evolutionary Tree Viewer using D3.js
BSD 2-Clause "Simplified" License
2 stars 3 forks source link

Phylo: Export Image #8

Open jacmarjorie opened 10 years ago

jacmarjorie commented 10 years ago

Download div as an image.

Zsailer commented 10 years ago

Perhaps download as mp4 as well?

jacmarjorie commented 10 years ago

Great idea!

Zsailer commented 10 years ago

I realized how badly this is needed over weekend. I was trying to grab a visualization I created and save it in a high resolution format. This is extremely difficult to do right now, but shouldn't be. Especially if we want to attract users.

It would be ideal to preserve the SVG format of the image for editing/scaling purposes. I'm not sure the best way to do this. It might be useful to output both an SVG and PDF of the visualization so the user can edit a copy if they have inkscape or adobe. Exporting as a jpg or png would make scaling not pretty.

Zsailer commented 10 years ago

Let's checkout jsPDF