Warning: Command failed: gm identify: No decode delegate for this image format... #39

Closed
patrickcate opened this Issue Feb 28, 2014 · 7 comments

Comments

Projects
None yet
6 participants

I'm setting this up for the first time but when I run grunt responsive_images I get the following error:

Warning: Command failed: gm identify: No decode delegate for this image format (images/2014-01-01.jpg).
gm identify: Request did not return an image.
Use --force to continue.

I've installed ImageMagick and confirmed it is working correctly by converting a jpg to a png with it. I've set the engine to use as 'im' and below is my configuration:

options:
            {
                engine: 'im',
                sizes: [
                {
                    name: 'small',
                    width: 320,
                    quality: 80,
                    aspectRatio: true
                },
                {
                    name: 'medium',
                    width: 640,
                    quality: 80,
                    aspectRatio: true
                }]
            },
            files: [{
                expand: true,
                src: ['**/*.{jpg,gif,png}'],
                cwd: 'images/',
                dest: '_site/images/'
            }]

Any idea what the issue is? I'm not sure if the gm in the error message is a reference to GraphicsMagick, but I thought setting the engine to 'im' would have prevented any issue with using ImageMagick. I appreciate any help.

drwlrsn commented Mar 2, 2014

Hi @patrickc8t,
What operating system and version of ImageMagick are you using? What does the output of $ convert --version look like? For instance mine looks like,

Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl png xml zlib

So I was able to get things work by installing GraphicsMagick even though I already mentioned setting the engine to 'im'. This seems to be the same problem as #35. Heres the output of convert --version

Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl png xml zlib
Owner

andismith commented Apr 21, 2014

Please can you try this again with version 0.1.2?

Thanks,
Andi

@andismith andismith added the bug label Apr 21, 2014

Contributor

tmaslen commented Apr 21, 2014

Just had exactly the same problem and bumping the version I was linking to in my package.json file to 0.1.2 fixed the problem. Thanks Andi. See you at the NET awards ;-D

Owner

andismith commented Apr 22, 2014

Sweet, thanks for the update @maslen! (See you at the NET awards)

If anyone still has this issue, feel free to add a comment to this thread. Otherwise, closing!

Andi

@andismith andismith closed this Apr 22, 2014

Hmm, I'm having same issue, 10.9.3

npm installed 0.1.3, tried rolling back to 0.1.2 no dice

Any ideas?

here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment