fogleman / primitive

Reproducing images with geometric primitives.
https://primitive.lol/
MIT License
12.35k stars 608 forks source link

output to .gif file format fails under windows #60

Open mapl opened 6 years ago

mapl commented 6 years ago

In Windows the "convert" command is already being used by "convert.exe" command to convert file systems. Trying to output to gif fails with "exit status 4".

Reason:

"convert -loop 0 -delay 50 C:\Users\xxxxx\AppData\Local\Temp\239865135*.png -delay 200 C:\Users\xxxxx\AppData\Local\Temp\239865135\000038.png test.gif"

According to the docs, the complete command should be:

"magick convert" rose.jpg rose.png

http://www.imagemagick.org/script/convert.php

bradydowling commented 4 years ago

Similar issue with macOS, the error message is exec: "convert": executable file not found in $PATH.

fogleman commented 4 years ago

@bradydowling You need to install ImageMagick (you can brew install imagemagick) before you can run the convert command.

onemedicine commented 2 years ago

On Windows systems, you should add ”magick“, like this : magick convert -loop 0 -delay 50.......