Closed GMouron closed 8 years ago
I love this, nice work.
I'm thinking, to make things simpler, we should base64 encode every image (even those in CSS) regardless if they're local or on the web. Then we can just have a single base64: true
option.
What do you think? I'd be happy to merge this onto a branch and keep hacking.
Hey thanks. Yeah that was my ultimate goal, I see 3 problems though, that's why I did not tackle them right away :
I think the main problem here is number 2. There are some possible solutions
So those are all my thoughts and why I first went only with local images :)
This has been here for a while. I would love this feature, are there plans to merge it? Even without it being perfect.
Closing this PR for now. If you want to rebase from master and re-open, that would be lovely!
In order to make the generated presentation even more self-contained, this PR allows the user to specify an option to encode images present locally in base64 format and inserted as data uris in the presentation instead of a normal src reference which forces to always have the images next to the html presentation.
This works, for the moment, only for images that are on the machine where cleaver is run, and specified with a relative path.