Skip to content

wanaideed/SVG2Image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG2Image

export svg to image file.

Usage

svg2image({
	src: svg,
	dest: '',
	width: 100,
	height: 400
});

the sample is here

option.src

svg DOM element

option.dest

name of the image, default is ISO Date

option.width

image's width

option.height

image's height

About

export svg to image file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.1%
  • HTML 48.9%