Cannot find 'convert' using SaveGIF function in animation package

前端 未结 4 1421
自闭症患者
自闭症患者 2020-12-21 05:57

I\'m having trouble with the SaveGIF function in library (animation). The function gives me this error:

Error in cmd.fun(sprintf("%s --version"

4条回答
  •  余生分开走
    2020-12-21 06:28

    You probably did not edit your PATH variable. On Windows 7 (but will probably work on earlier versions to) go to:

    start menu

    Right click computer -> properties

    Advanced System Settings

    Environment Variables

    Then under "System variables" (the lower pane) find the variable "path", select it and click edit.

    You are interested in the content of Variable value (maybe copy it to a text editor to read it better). It should contain the link to imagemagick in it, seperated by semicolons from other variables. For me the path to imagemagick is:

    C:\Program Files\ImageMagick-6.6.7-Q16

    Make sure you only add it, not change anything else to the path variable. Add it with a semicolon.

提交回复
热议问题