julien-c / epub

node.js epub reader
https://www.npmjs.com/package/epub
Other
333 stars 307 forks source link

Extracting images of the books #43

Closed mqtik closed 4 years ago

mqtik commented 4 years ago

Hi.

In a nutshell, I need to get the images of the books inside the contents.

Having the src attribute, get the image in base64, buffer it in a image/*, and set the src of the image with the new URL.

How can I do that?

mqtik commented 4 years ago

Done by using the function getImage()