Comments (2)
The error appears to be: { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
,
which meant that sudo apt-get install graphicsmagick
fixed it.
However, the program should not crash without a meaningful error message, I would suggest patching the function to do this instead:
function readImage(path, callback) {
fs.readFile(path, function (err, data) {
gm(data).size(function (err, size) {
if (err) {
console.log(err);
}
callback(err, {
path: path,
width: size && size.width,
height: size && size.height,
data: data
});
});
});
}
from node-sprite-generator.
Thanks!
from node-sprite-generator.
Related Issues (20)
- [Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%wx%h" "-" this most likely means the gm/convert binaries can't be found] HOT 3
- sprite image is not generating HOT 6
- Could not execute GraphicsMagick/ImageMagick HOT 1
- Getting the following error - Unrecognized option (-Infinity) HOT 3
- Bad compositor / incorrect dependencies even though GraphicsMagick is installed HOT 6
- Support `sharp` as compositor
- gm convert: Unrecognized option (-Infinity) HOT 5
- Pass input source and retrieve output source as buffers HOT 5
- 0.10.2 version is vulnerable, please publish the GitHub changes to npm ? HOT 2
- When can we get next major release? HOT 3
- CLI available? HOT 2
- Update Dependencies HOT 1
- Fails to render custom template... template file name is contents of output stylesheet HOT 4
- grunt command line options are not preserved
- Sprite image and style does not generated HOT 1
- Any way we can use .svg files as well? HOT 1
- JPG support with quality option
- Update canvas dependency version HOT 1
- Options.stylesheet does not accept `javascript` HOT 2
- Error installing node-sprite-generator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sprite-generator.