fogleman / primitive

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

Silently fails when specifying jpg as output #7

Closed 0rvar closed 7 years ago

0rvar commented 7 years ago

Running latest Go on Windows 10, specifying

primitive.exe -i file.jpg -o otherfile.jpg -n 100 -v

fails to write the output file with no error, verbose output ends with writing otherfile.jpg. Switching to -o otherfile.png works.

0rvar commented 7 years ago

I see that jpg is not listed in the output formats section in the README, but even so, the program should crash when specifying an unsupported output format

pravj commented 7 years ago

I get the same result, running Ubuntu 14.04 and go version go1.5 linux/amd64.

phlppk commented 7 years ago

jpgs seem to work for me but I have the same issue with (not) writing gifs... (osx)

Edit: After actually reading the readme installing imagemagick helped me a lot - which of course doesn't solve the silent failing because of not having the nessesary dependencies installed despite using -v