diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:36:35 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:36:35 +0100 |
| commit | f854e23429c23451a968dfe4691fba5eb21ea21e (patch) | |
| tree | 4061308df30c8cae988d51b4d53686c4248db508 /lib/document-to-html.js | |
| parent | a02b92d7b7d95ab2e8f9e2dfb8a7661b61306674 (diff) | |
Replace zipfile with unzip
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index fe3b566..64672ee 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -97,9 +97,9 @@ function DocumentConverter(options) { }); }, "image": function(element, html, callback) { - element.read().then(function(imageBuffer) { + element.read("base64").then(function(imageBuffer) { // TODO: set alt attribute to wp:inline/wp:docPr/@descr - var src = "data:image/png;base64," + imageBuffer.toString("base64"); + var src = "data:image/png;base64," + imageBuffer; var attributes = {src: src}; if (element.altText) { attributes.alt = element.altText; |
