-
Notifications
You must be signed in to change notification settings - Fork 9
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
Interest in a standalone image/bmp method? #25
Comments
This should fix the PNG MIME issue, and mean the user just needs ImageIO, as long as only PNGs are used I agree that FileIO's compound error messages are a bit tough.. but as long as the packages are interacting properly (which they should by design.. this was an oversight) the current error message format should generally be nice and friendly. JuliaIO/ImageIO.jl#6 was hopefully a rare bug As for Making the install process simpler. Perhaps |
To clarify, you don't need to import the whole
@fonsp I believe you're suggesting 1) implementing
There's a proposal for this JuliaImages/Images.jl#824 I think we just need some agreement on what should be installed by default. |
Aha, do I understand correctly that: Thanks for clarifying the package structure. But the only reason that I want to write it is to make the code using Images; Gray.(rand(4,4)) work in an env that only has |
I didn't watch closely to If it's only for displaying an image by If we want to support FYI, there's a section in the docs explaining how to choose between different IO backends. Note that If all the interest is to get that bug fixed, then probably we can close this issue and move the future discussion to JuliaIO/ImageIO.jl#7? |
Hi all,
Images.jl
can be a bit tough to work with, because you need to manually install the dependenciesImageIO
andImageMagick
for the show methods to work, and the error messages are somewhat cryptic (JuliaIO/ImageIO.jl#6).A solution could be to write a
show
method forimage/bmp
- the file format is so simple that it can be written in Julia, and it would work without any additional dependencies, on all platforms.Here's a BMP encoder that I wrote for greyscale images:
https://github.com/lukavdplas/pluto-notebooks/blob/master/svd.jl#L318-L356
It could be modified to also add support for RGB images - this is just a different header.
My goal is to make this basic Pluto notebook work:
The MIME priority of Pluto display system is here: https://github.com/fonsp/Pluto.jl/blob/v0.11.7/src/runner/PlutoRunner.jl#L201
Currently, PNG is prioritized over BMP. I would like to keep that ordering, but if that's not possible, then I can consider moving BMP before PNG.
I am pretty lost in all the Image packages - where should this code live?
The text was updated successfully, but these errors were encountered: