Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Unable to convert SVG to PNG on OS X #17

Closed
bulyshko opened this issue Jun 7, 2016 · 5 comments · Fixed by #18
Closed

Unable to convert SVG to PNG on OS X #17

bulyshko opened this issue Jun 7, 2016 · 5 comments · Fixed by #18

Comments

@bulyshko
Copy link

bulyshko commented Jun 7, 2016

spawn /Users/USERNAME/.vscode/extensions/cssho.vscode-svgviewer-1.1.11/node_modules/phantomjs/lib/phantom\phantomjs.exe ENOENT
@cssho
Copy link
Owner

cssho commented Jun 8, 2016

Workaround : npm rebuild on /Users/USERNAME/.vscode/extensions/cssho.vscode-svgviewer-1.1.11/

@bulyshko
Copy link
Author

bulyshko commented Jun 8, 2016

@cssho Why would one need a workaround? This should work after installation.

@cssho
Copy link
Owner

cssho commented Jun 8, 2016

@bulyshko Exactly. I will examine the handling of that.

cssho added a commit that referenced this issue Jun 13, 2016
refs #17
- svg2png to svgexport
- in activate, execute 'npm rebuild'

execute 'npm rebuild' in activate.
cssho added a commit that referenced this issue Jun 13, 2016
fix #17
- svg2png to svgexport
- in activate, execute 'npm rebuild'

execute 'npm rebuild' in activate.
cssho added a commit that referenced this issue Jun 13, 2016
fix #17
- svg2png to svgexport
- in activate, execute 'npm rebuild'
cssho added a commit that referenced this issue Jun 13, 2016
fix #17
- svg2png to svgexport
- in activate, execute 'npm rebuild'
@cssho cssho closed this as completed in #18 Jun 13, 2016
@g3o2
Copy link

g3o2 commented Sep 1, 2016

This feature does still not appear to work. A message appears after Export PNG specifying the path of the supposed .png file but there's nothing. I've installed the latest release (1.1.12) in vscode 1.4.0 on Mac OS X 10.11.6.

@kexi
Copy link
Collaborator

kexi commented Sep 1, 2016

as well as Ubuntu16.04LTS (Node.js not installed).

@Georgeouz

launch terminal then type

which npm

if no result,

Solution 1

install Node.js first, and then restart vscode.
because of using npm command to export png.

Solution 2

download vsix
https://github.com/kexi/vscode-svgviewer/releases/tag/20160902
launch terminal to install vsix, then type

code vscode-svgviewer-1.1.12.vsix

use "(Experimental) Export PNG" menu to export PNG.

I'm working on #19 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants