animations: use tmp.gif for ijulia, remove prefix from convert call; closes #346
This commit is contained in:
parent
f881bfc4fc
commit
91aa1d718a
@ -24,7 +24,7 @@ immutable AnimatedGif
|
|||||||
filename::Compat.ASCIIString
|
filename::Compat.ASCIIString
|
||||||
end
|
end
|
||||||
|
|
||||||
function gif(anim::Animation, fn = tempname()*".gif"; fps::Integer = 20)
|
function gif(anim::Animation, fn = (isijulia() ? "tmp.gif" : tempname()*".gif"); fps::Integer = 20)
|
||||||
fn = abspath(fn)
|
fn = abspath(fn)
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -35,8 +35,8 @@ function gif(anim::Animation, fn = tempname()*".gif"; fps::Integer = 20)
|
|||||||
if isfile(file) && !haskey(ENV, "MAGICK_CONFIGURE_PATH")
|
if isfile(file) && !haskey(ENV, "MAGICK_CONFIGURE_PATH")
|
||||||
include(file)
|
include(file)
|
||||||
end
|
end
|
||||||
prefix = get(ENV, "MAGICK_CONFIGURE_PATH", "")
|
# prefix = get(ENV, "MAGICK_CONFIGURE_PATH", "")
|
||||||
run(`$(joinpath(prefix, "convert")) -delay $speed -loop 0 $(joinpath(anim.dir, "*.png")) -alpha off $fn`)
|
run(`convert -delay $speed -loop 0 $(joinpath(anim.dir, "*.png")) -alpha off $fn`)
|
||||||
|
|
||||||
catch err
|
catch err
|
||||||
warn("""Tried to create gif using convert (ImageMagick), but got error: $err
|
warn("""Tried to create gif using convert (ImageMagick), but got error: $err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user