mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 09:24:49 +00:00
handle base64 & binary images
This commit is contained in:
parent
21ccfcf766
commit
3f162d75dc
2 changed files with 9 additions and 7 deletions
|
@ -376,12 +376,13 @@ function deferredAddZip(url, filename) {
|
|||
}
|
||||
tmpGlobalContent = tmpGlobalContent.replace(oldFilename, filename)
|
||||
}
|
||||
|
||||
|
||||
extractedImages.push({
|
||||
filename: filename,
|
||||
isBinary: true,
|
||||
data: data
|
||||
// TODO - must be JSON serializable
|
||||
data: base64ArrayBuffer(data)
|
||||
});
|
||||
|
||||
deferred.resolve();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue