Skip to content

Convert WMF/EMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.

Notifications You must be signed in to change notification settings

g21589/wmf2canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wmf2canvas

MIT License

Convert WMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.

Online Demo

http://g21589.github.io/wmf2canvas

Usage

<input type="file" id="file" accept="image/x-wmf" />
<canvas id="canvas"></canvas>

<script>
let wmf = new WMFConverter();   // new the WMFConverter object
	
let canvas = document.getElementById("canvas");
let file = document.getElementById("file");
	
file.onchange = function() {
	let filename = this.files[0];
	wmf.toCanvas(filename, canvas); // load the wmf file and convert to canvas graph
}
</script>

Version

0.9.1

License

MIT

About

Convert WMF/EMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published