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

Canvas shouldn't force to embed the image in the html #21

Open
rmannibucau opened this issue Sep 14, 2021 · 0 comments
Open

Canvas shouldn't force to embed the image in the html #21

rmannibucau opened this issue Sep 14, 2021 · 0 comments

Comments

@rmannibucau
Copy link

- _style = %[background-image: url(#{image_uri _bg_img.attr(:target)}); background-size: #{(_bg_img.roles & %w[cover contain])[0] || 'cover'}; background-repeat: no-repeat]
use background-url with a data uri but this lead to big html files.
On some http servers it can't be served (*.html max size <= 1M). For 5 slides it overpasses quickly 1M!

Would be great to be able to use an actual url.

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

1 participant