Closed karlwessel closed 4 years ago
I hope this is the right place to ask.
Lately when I try to display an image in a simple notebook like
using Images Gray.(rand(16, 16))
I get the following error
All errors: =========================================== Errors encountered while saving nothing. MethodError: no method matching save(::FileIO.Stream{FileIO.DataFormat{:PNG},IOContext{Base64.Base64EncodePipe}}, ::Array{Gray{Float64},2}; mapi=ImageShow.var"#14#16"()) Closest candidates are: save(::FileIO.File{FileIO.DataFormat{:PNG}}, ::S; kwargs...) where {T, S<:Union{AbstractArray{T,3}, AbstractArray{T,2} where T}} at .julia/packages/ImageIO/ysUf7/src/ImageIO.jl:17 =========================================== UndefVarError: convert not defined =========================================== MethodError: no method matching save(::FileIO.Stream{FileIO.DataFormat{:PNG},IOContext{Base64.Base64EncodePipe}}, ::Array{Gray{Float64},2}; mapi=ImageShow.var"#14#16"()) 16×16 Array{Gray{Float64},2} with eltype Gray{Float64}: Gray{Float64}(0.987538) … Gray{Float64}(0.790373) Gray{Float64}(0.173342) Gray{Float64}(0.246227) Gray{Float64}(0.892551) Gray{Float64}(0.41765) Gray{Float64}(0.116498) Gray{Float64}(0.602184) Gray{Float64}(0.704287) Gray{Float64}(0.826014) Gray{Float64}(0.765021) … Gray{Float64}(0.874802) Gray{Float64}(0.4785) Gray{Float64}(0.936385) Gray{Float64}(0.701693) Gray{Float64}(0.796711) Gray{Float64}(0.412388) Gray{Float64}(0.496377) Gray{Float64}(0.049168) Gray{Float64}(0.898548) Gray{Float64}(0.819384) … Gray{Float64}(0.212465) Gray{Float64}(0.729753) Gray{Float64}(0.408159) Gray{Float64}(0.604556) Gray{Float64}(0.515594) Gray{Float64}(0.308341) Gray{Float64}(0.976674) Gray{Float64}(0.073591) Gray{Float64}(0.407746) Gray{Float64}(0.368809) … Gray{Float64}(0.3662) Closest candidates are: save(::FileIO.File{FileIO.DataFormat{:PNG}}, ::Any) at .julia/packages/FileIO/Glbhe/src/mimesave.jl:6 got unsupported keyword argument "mapi" save(::FileIO.File{FileIO.DataFormat{:SVG}}, ::Any) at .julia/packages/FileIO/Glbhe/src/mimesave.jl:16 got unsupported keyword argument "mapi" save(::FileIO.File{FileIO.DataFormat{:PDF}}, ::Any) at .julia/packages/FileIO/Glbhe/src/mimesave.jl:26 got unsupported keyword argument "mapi" ... =========================================== Fatal error:
Here is the output of Pkg.status() for a test environment:
Pkg.status()
Project test2 v0.1.0 Status `/tmp/test2/Project.toml` [7073ff75] IJulia v1.21.2 [916415d5] Images v0.22.2
I believe updating ImageMagick to at least v"1.1.5" would solve this issue.
ImageMagick
v"1.1.5"
See also: https://github.com/JuliaImages/Images.jl/issues/889
That solved the Problem! Thank you!
I hope this is the right place to ask.
Lately when I try to display an image in a simple notebook like
I get the following error
Here is the output of
Pkg.status()
for a test environment: