Error creating animation w/Plots.jl

I am trying to make an animation using Plots.jl; the simple interface is really great. Unfortunately, it doesn’t work. It appears to be passing an invalid argument for ImageMagick. The error I get is:

Invalid Parameter - 10
WARNING: Tried to create gif using convert (ImageMagick), but got error: ErrorException("failed process: Process(`conver
t -delay 10 -loop 0 'C:\\Users\\seanm\\AppData\\Local\\Temp\\jl_C8F6.tmp\\*.png' -alpha off 'C:\\Users\\seanm\\Dropbox\\
Code\\Julia\\test_gif.gif'`, ProcessExited(4)) [4]")
ImageMagick can be installed by executing `Pkg.add("ImageMagick")`

I do have ImageMagick installed; I want to make sure I’m not missing something essential before submitting it as a bug… This code reproduces the problem:

using Plots

x = [i for i = 0:0.1:10]
anim = @animate for i = 1:10
    plot(x, map(u -> sin(i*π*u), x))
end

gif(anim, "./test_gif.gif", fps=10)

Platform is 64-bit Windows; my Julia is 0.5.0 on the machine where I have the problem since I haven’t gotten around to upgrading this one; I haven’t tested on 5.1 yet.

ImageMagick.jl has some odd installation problems on Windows.

https://github.com/JuliaIO/ImageMagick.jl/issues/52
https://github.com/JuliaPlots/Plots.jl/issues/516

But may have been fixed with

https://github.com/JuliaIO/ImageMagick.jl/pull/67

?

I get a very similar error on Mac. I should say I have very recurrent errors with ImageMagick so maybe something is corrupted with the installation of that package on my system. Not sure whether the error is in ImageMagick or Plots.
Btw, you can simplify your call a little and don’t need x:

anim = @animate for i = 1:10
    plot(u -> sin(i*π*u), 0, 10)
end