Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview() doesn't work on Windows #14

Closed
cormullion opened this issue Mar 29, 2017 · 5 comments
Closed

preview() doesn't work on Windows #14

cormullion opened this issue Mar 29, 2017 · 5 comments

Comments

@cormullion
Copy link
Member

When I find out the correct incantation to preview graphics files on Windows I shall add it.

cormullion added a commit that referenced this issue Mar 30, 2017
@Wedg
Copy link

Wedg commented Oct 2, 2018

Is this the same issue? I also can't get preview() to work in Jupyter.

When running

preview()

And when running

display("image/png", FileIO.load("drawing.png"))

I get the same error message:

MethodError: no method matching show(::IOContext{Base64.Base64EncodePipe}, ::MIME{Symbol("image/png")}, ::Array{RGB{FixedPointNumbers.Normed{UInt8,8}},2})
Closest candidates are:
  show(::IO, !Matched::MIME{Symbol("text/plain")}, ::AbstractArray) at arrayshow.jl:316
  show(::IO, !Matched::MIME{Symbol("text/plain")}, ::Any) at sysimg.jl:194
  show(::IO, !Matched::MIME{Symbol("text/csv")}, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\DelimitedFiles\src\DelimitedFiles.jl:828
  ...

Stacktrace:
 [1] limitstringmime(::MIME{Symbol("image/png")}, ::Array{RGB{FixedPointNumbers.Normed{UInt8,8}},2}) at C:\Users\michaelw\.julia\packages\IJulia\4VL8h\src\inline.jl:43
 [2] display(::IJulia.InlineDisplay, ::MIME{Symbol("image/png")}, ::Array{RGB{FixedPointNumbers.Normed{UInt8,8}},2}) at C:\Users\michaelw\.julia\packages\IJulia\4VL8h\src\inline.jl:53
 [3] display(::MIME{Symbol("image/png")}, ::Array{RGB{FixedPointNumbers.Normed{UInt8,8}},2}) at .\multimedia.jl:301
 [4] display(::String, ::Array{RGB{FixedPointNumbers.Normed{UInt8,8}},2}) at .\multimedia.jl:179
 [5] top-level scope at In[18]:1

But when running

display("image/png", read("drawing.png"))

I do get a display of the image - i.e. it works.

@cormullion
Copy link
Member Author

hi Michael. I'm sorry you're encountering problems. I've got no access to a Windows box so I've never been able to test it properly. One thing that could be done would be to try other packages that display things (plots, images, etc) to see whether the problem is lower down the stack or entirely within Luxor.jl code.

@cormullion
Copy link
Member Author

Might be better in release v1.1.1, made today.

@Wedg
Copy link

Wedg commented Oct 9, 2018

It works! Thank you! I'm sure you can close the issue.
And thank you too for the Luxor package. It's awesome.

@cormullion
Copy link
Member Author

@Wedg thanks for the testing, am relieved to hear that it works!

cormullion added a commit that referenced this issue Feb 4, 2022
cormullion added a commit that referenced this issue Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants