How do you feel about base64 encoding images?
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing Hyperscript.jl's current HTML rendering behavior and the Julia Base.showable MIME examples in the issue. Determine the intended scope for image and audio support, including how base64 output should be represented, before defining tests or completion criteria.
Written by the indexing model from the issue text.
Description
using Images
img = load("my dog.jpg")
@assert Base.showable(MIME"image/jpeg"(), img)
m("div", x)
Gives me
<div>
Images.Image{blablalba} blablab
</div>
Hyperscript.jl could check Base.showable for MIME types like images and audio, and base64-encode the result. This would give
<div>
<img src="data:image/jpeg;base64,blablablalblkdjflgj42i9832d..." />
</div>
Do you think that this fits within the scope of the project?
- Dominant language
- Julia
- Stars
- 105
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaWeb/Hyperscript.jl
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
JuliaWeb/Hyperscript.jl#46 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaWeb/Hyperscript.jl#44 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
JuliaWeb/Hyperscript.jl#42 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
JuliaWeb/Hyperscript.jl#40 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
JuliaWeb/Hyperscript.jl#37 ·
All issues in JuliaWeb/Hyperscript.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TuringLang/Turing.jl#2917 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaDiff/ChainRules.jl#871 · 1 comment ·
Maintainers usually reply within 1 day