Error when attempting to output GIF

G’MIC appears to be looking for GraphicsMagick and ImageMagick.

  1. I have ImageMagick v7 (Windows) which uses magick instead of convert.
  2. G’MIC could be more consistent by choosing to use only one of them. I prefer ImageMagick. :slight_smile: Or it could use whichever happens to be on the system.

gmic -sp lena -sp tiger -o dst.gif

[gmic]-0./ Start G'MIC interpreter.
[gmic]-1./sp/_sample/ Input sample image 'lena' (1 image 512x512x1x3).
[gmic]-1./sp/_sample/ Input sample image 'tiger' (1 image 750x500x1x3).
[gmic]-2./ Output images [0,1] as gif file 'dst.gif'.Invalid Parameter - 100
'gm.exe' is not recognized as an internal or external command,
operable program or batch file.

[gmic]-2./ *** Error *** Command '-o': [instance(512,512,1,3,0000000007f30040,non-shared)] gmic<float>::save_other(): Failed to save file 'dst_000000.gif'. Format is not natively supported, and no external commands succeeded.
[gmic] Command '-o' has the following description: 

    -o: Equivalent to '-output'.

    -output (+):
                        [type:]filename,_format_options

        Output selected images as one or several numbered file(s).
        (eq. to '-o').
        Default value: 'format_options'=(undefined).

gmic -sp lena -sp tiger -o dst.gif,1,0

[gmic]-0./ Start G'MIC interpreter.
[gmic]-1./sp/_sample/ Input sample image 'lena' (1 image 512x512x1x3).
[gmic]-1./sp/_sample/ Input sample image 'tiger' (1 image 750x500x1x3).
[gmic]-2./ Output images [0,1] as animated gif file 'dst.gif', with 1 fps.
[gmic]-2./ *** Error *** Command '-o': [instance(2,16,0000000004273418)] CImgList<float>::save_gif_external(): Failed to save file 'dst.gif' with external command 'convert'.
[gmic] Command '-o' has the following description: 

    -o: Equivalent to '-output'.

    -output (+):
                        [type:]filename,_format_options

        Output selected images as one or several numbered file(s).
        (eq. to '-o').
        Default value: 'format_options'=(undefined).

From what I’ve read about the ImageMagick 7 release notes, you should still have convert somewhere if you ticked one checkbox during the installation of IM7. Isn’t that the case ?
Please tell me, because depending on your answer, the required changes are probably not the same.

That is true. If I remember correctly, they dropped convert because of a longstanding complaint that it conflicted with some system app(s) with the same name. Now, convert is invoked by magick convert or simply by magick.

gmic -sp lena -sp tiger -o dst.gif,1,0 works now after reinstalling ImageMagick with convert included; so does gmic -sp lena -sp tiger -o dst.gif, which was looking for gm in the error output. That said, I still hope that G’MIC will eventually support magick and provide more GIF options.

Tomorrow, I’ll try to make G’MIC detect IM7’s magick executable instead of convert.