Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #29 #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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) : <your correct full absolute path to your file>
```

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.

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down