You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add an image (that I can correctly open with other tools), using a simple document.createImage('./cover.jpg');. But I get:
RangeError: Index out of range
at checkOffset (buffer.js:970:11)
at Buffer.readUInt16LE (buffer.js:1016:5)
at Object.isCUR [as detect] (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:47491:14)
at module.exports (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:48009:33)
at lookup (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:47349:14)
at module.exports (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:47449:12)
at Media.addMedia (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:47292:28)
at File.createImage (/Users/gawaine/dev/artshell-docx-exporter/node_modules/docx/build/index.js:46088:38)
at createDocument (/Users/gawaine/dev/artshell-docx-exporter/index.js:43:26)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
The text was updated successfully, but these errors were encountered:
I'm trying to add an image (that I can correctly open with other tools), using a simple
document.createImage('./cover.jpg');
. But I get:The text was updated successfully, but these errors were encountered: