diff --git a/src/animation.jl b/src/animation.jl index 59de784e..4f9ff6da 100644 --- a/src/animation.jl +++ b/src/animation.jl @@ -110,7 +110,7 @@ end Base.showable(::MIME"image/gif", agif::AnimatedGif) = file_extension(agif.filename) == "gif" function Base.show(io::IO, ::MIME"image/gif", agif::AnimatedGif) - write(io, read(agif.filename)) + open(fio-> write(io, fio), agif.filename) end