andismith / grunt-responsive-images

Produce images at different sizes for responsive websites.
http://www.andismith.com/grunt-responsive-images/
MIT License
719 stars 96 forks source link

Could Not Execute Graphics Magick #130

Closed guti7 closed 6 years ago

guti7 commented 6 years ago

Expected Behaviour

Perform task: grunt responsive_images

Actual Behaviour

Warning: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%m:%T:%s" "images/cockatoos.jpg" this most likely means the gm/convert binaries can't be found Use --force to continue.

Aborted due to warnings.

Steps to Reproduce

Command line: grunt responsive_images

PC/Mac and Graphics Engine used

macOS 10.13.3 ImageMagick 7.0.7-22

Grunt Configuration

    responsive_images: {
      dev: {
        files: [{
          expand: true,
          cwd: 'images/',
          src: ['**/*.{jpg,gif,png}'],
          dest: 'build/images/'
        }]
      }
    }

Comments

It appears it is not detecting that I have ImageMagick installed. I do not have GraphicsMagick installed.

guti7 commented 6 years ago

According to installation in README.md you need either one, not indicating that both are required.

Installing GraphicsMagick resolved the issue.

fontsie commented 5 years ago

You can use only one engine! Default one is GraphicsMagick, if you want use ImageMagick you must set 'options.engine' to 'im'.

see: https://github.com/andismith/grunt-responsive-images/blob/master/README.md#options