From bfa2fd2edcbc5994628e33b46cba630df05324c1 Mon Sep 17 00:00:00 2001 From: Yakir Luc Gagnon <12.yakir@gmail.com> Date: Wed, 14 Mar 2018 12:01:01 +0100 Subject: [PATCH] add option to supress saved message Added option `show_msg::Bool` to `buildanimation` to show/suppress the "Saved animation to..." message. --- src/animation.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/animation.jl b/src/animation.jl index 12fdb36b..6c1f880f 100644 --- a/src/animation.jl +++ b/src/animation.jl @@ -68,7 +68,8 @@ mp4(anim::Animation, fn = mp4fn(); kw...) = buildanimation(anim.dir, fn, false; function buildanimation(animdir::AbstractString, fn::AbstractString, is_animated_gif::Bool=true; fps::Integer = 20, loop::Integer = 0, - variable_palette::Bool=false) + variable_palette::Bool=false, + show_msg::Bool=true) fn = abspath(fn) if is_animated_gif @@ -86,7 +87,7 @@ function buildanimation(animdir::AbstractString, fn::AbstractString, run(`ffmpeg -v 0 -framerate $fps -loop $loop -i $(animdir)/%06d.png -pix_fmt yuv420p -y $fn`) end - info("Saved animation to ", fn) + show_msg && info("Saved animation to ", fn) AnimatedGif(fn) end