Skip to content

Commit

Permalink
Disable alpha channel when converting PNGs
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Feb 13, 2016
1 parent c8de4fe commit 8cd6b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/animation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function gif(anim::Animation, fn::@compat(AbstractString) = "tmp.gif"; fps::Inte

# high quality
speed = round(Int, 100 / fps)
run(`convert -delay $speed -loop 0 $(anim.dir)/*.png $fn`)
run(`convert -delay $speed -loop 0 $(anim.dir)/*.png -alpha off $fn`)

catch err
warn("Tried to create gif using convert (ImageMagick), but got error: $err\nWill try ffmpeg, but it's lower quality...)")
Expand Down

0 comments on commit 8cd6b0b

Please sign in to comment.