JuliaWeb / JuliaWeb/Hyperscript.jl

How do you feel about base64 encoding images?

Open
#26 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
105
Forks
12
PR merge metrics
No merged PRs in 30d

Description

```julia
using Images

img = load("my dog.jpg")

@assert Base.showable(MIME"image/jpeg"(), img)

m("div", x)
```

Gives me

```html


Images.Image{blablalba} blablab

```

Hyperscript.jl could check `Base.showable` for MIME types like images and audio, and base64-encode the result. This would give

```html




```

Do you think that this fits within the scope of the project?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.