grunt-imagemagick icon indicating copy to clipboard operation
grunt-imagemagick copied to clipboard

Fatal error: spawn ENOENT

Open elkwood opened this issue 11 years ago • 1 comments

Hi I'm having an issue I can't seem to be able to resolve.

Here's my GruntFile.js module.exports = function(grunt) { grunt.initConfig({ "imagemagick-resize": { dev: { from: 'img/', to: 'img/optimized/', files: '*.jpg', props: { height: 200 } } } });

grunt.loadNpmTasks('grunt-imagemagick');

grunt.registerTask('default', ['imagemagick-resize']);

}; After running "grunt" my console output is this.

Running "imagemagick-resize:dev" (imagemagick-resize) task Beginning ImageMagick resizing process resizing:img/goat.jpg... resizing:img/goats.jpg... resizing:img/image1.jpg... resizing:img/image2.jpg... resizing:img/image3.jpg... resizing:img/image4.jpg... all queued Fatal error: spawn ENOENT

Am I missing a dependency for this project? I installed imagemagic with brew. and here are the locally installed dependencies: "dependencies": { "imagemagick": "~0.1.3", "grunt-imagemagick": "git://github.com/icagstrout/grunt-imagemagick.git", "grunt": "~0.4.1" }

elkwood avatar Jun 17 '13 19:06 elkwood

I know it's been a while since you posted this issue but I encountered the same thing today, and that was because Imagemagick CLI tools were not installed on my computer. You should check your installation.

gfilliere avatar Nov 29 '13 09:11 gfilliere