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

index.html is unnecessarily bloated #2

Open
sno opened this issue Jul 21, 2016 · 2 comments
Open

index.html is unnecessarily bloated #2

sno opened this issue Jul 21, 2016 · 2 comments

Comments

@sno
Copy link
Owner

sno commented Jul 21, 2016

twine embeds all images as base64 inside index.html, which is why it weighs in at over 7 MB. not sure what it means for the preloader, but images can probably be embedded in the usual way straight from their folder instead.

@Lucas-C
Copy link

Lucas-C commented Jan 12, 2017

I had a look at this, out of curiosity. The 1st image is inserted like this:

<div id="storeArea" data-size="95" hidden>
  <div tiddler="jungle-eyes" tags="Twine.image" created="201506090147" modifier="twee" twine-position="420,1533">data:image/png;base64,...

I had a look at how tweecode/twine insert images: https://github.com/tweecode/twine/blob/master/storyframe.py#L733
It looks like it is systematically inserting them as TiddlyWiki tiddlers.
Hence, I do not think there is another "clean" alternative.
You may still try to insert pure HTML <img> tags instead.

@Lucas-C
Copy link

Lucas-C commented May 23, 2018

I found a way to replace base64 images by <img> tags:

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

2 participants