agordon/d3export_demo
关于
Export d3js graphics to PDF/PNG/SVG
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文d3 export demo
This is a proof-of-concept demo for saving d3js graphics as PDF/PNG/SVG files.
Objective
CGI takes incoming SVG serialization. Use graphics toolkit to open SVG serialization as input, output PNG or PDF as output.
This perl implementation just performs a system call on rsvg-convert, nothing
specific to perl.
Options
- librsvg
- imagemagick http://stackoverflow.com/questions/15119679/converting-an-svg-with-imagemagick
- batik
See http://stackoverflow.com/questions/4809194/convert-svg-image-to-png-with-php
for another nice overview.
We just run rsvg-convert man rsvg
Implementation
See here for more details: * https://github.com/agordon/d3export_demo
See here for online demo: http://d3export.housegordon.org/
Implementation in other languages
Several people have implemented the CGI portion in other languages:
- NodeJS: https://github.com/gabhi/d3export_demo
- Python/Flask: https://github.com/mgymrek/pybamview/commit/c26de4dde7316d557ccbe9ee4159525950898bea#diff-070773797d6114c159703d8a18c749a2
License
Copyright (C) 2012,2014 by A. Gordon ([email protected])
All code written by me is released under BSD license: http://opensource.org/licenses/BSD-3-Clause (also uses several other libraries that have their own licenses).
探索相关项目
加载中…