don't read into a buffer first

This commit is contained in:
SimonDanisch 2019-03-19 14:23:25 +01:00
parent b78da20d04
commit 19fba27951

View File

@ -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