diff --git a/README.md b/README.md index fabba54..c912767 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,18 @@ -# svgexport +# svgexport 2 # + +This is a fork from the original svgexport module. This fixes the issue of + +``` +Unable to load file (fail) : +``` + +Do file an issue / a pull request if there are any feedbacks. + +---------- + +# Below here is from the original svgexport module # + +## svgexport svgexport is a Node.js module and command-line tool for exporting SVG files to PNG and JPEG, it uses PhantomJS for rendering SVG files. diff --git a/package.json b/package.json index 151f58f..eacb745 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "svgexport", - "version": "0.3.0", - "description": "Node.js module and command-line tool for exporting SVG to PNG and JPEG.", - "author": "Ali Shakiba", + "name": "svgexport2", + "version": "0.4.0", + "description": "A fork from the original svgexport module. This supports the latest PhantomJS upgarde. The original svgexport module states: This is a node.js module and command-line tool for exporting SVG to PNG and JPEG.", + "author": "Kiong", "keywords": [ "svg", "export", @@ -20,8 +20,9 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/shakiba/svgexport.git" + "url": "https://github.com/tlkiong/svgexport.git" }, + "bugs": "https://github.com/tlkiong/svgexport/issues", "dependencies": { "async": "^1.5.2", "phantomjs-prebuilt": "^2.1.4" diff --git a/render.js b/render.js index e3ca7d4..687220e 100644 --- a/render.js +++ b/render.js @@ -40,7 +40,7 @@ function exec(commands, done) { done && done(e); return; } - page.open(svgfile, function(status) { + page.open('file:///'+svgfile, function(status) { if (status !== 'success') { var err = 'Error: Unable to load file (' + status + '): ' + svgfile; done && done(err);