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

Deal with imagemagick.convert.path on windows #90

Open
sbj42 opened this issue Dec 17, 2016 · 0 comments
Open

Deal with imagemagick.convert.path on windows #90

sbj42 opened this issue Dec 17, 2016 · 0 comments

Comments

@sbj42
Copy link

sbj42 commented Dec 17, 2016

When I installed ImageMagick on Windows, the name of the program installed is "magick.exe". "convert" is some kind of windows filesystem utility. The imagemagick node module accommodates this by allowing you to set imagemagick.convert.path to work around that. I was able to get cordova-icon to run by hacking
ig.convert.path = "magick" into index.js.

I recommend one of the following:

  • Add an option to specify the convert path on the command line (something like if (argv.convertpath) ig.convert.path = argv.convertpath;)

  • Switch from the "imagemagick" module to one that deals more gracefully with this OS difference. The current github readme for that module says "This is an abandoned version.", and references another module which in turn says "This code has been unmaintained for a long time. Please consider using the gm module instead." So perhaps "gm" would better handle the windows case?

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

No branches or pull requests

1 participant