Hi,
I'm working with a library that extracts cover images from epubs (just a small personal project.) using a node library.
Some context:
Epubs work like zip files, in fact, if you change the name from <name>.epub to <name>.zip you can open it just like an zip file, and take out all the photos, text, or whatever.
The library I'm working with is called epub-image-extractor and is a simple library. Here's the link
[login to view URL]
The problem:
This library uses the another library called yauzl which is a zip file manager and for some reason is firing the "end" event instead of the "entry" event. It's likely a very simple fix, and will likely just require looking through the docs for the Yauzl library, but I don't currently have time.
I've included some images to demonstrate
Points to note in the images:
- coverPath variable is correct (the path to the cover photo in the epub file)
- zipFile variable seems to contain the epub
- [login to view URL]() seems to be where the issue is
- underneath [login to view URL]() there are two event listeners (end and entry), and the wrong one is being called (the is what needs debugging), leading to the "Cover image not found" error being thrown
Here's the docs for yauzl and the epud library again
[login to view URL]
[login to view URL]
P.S. there's a good chance I'll be doing more projects with Node in the future
Thanks
What happened? Is this still open?
I have came across many such instances with stream and event firing in past, I am debugging your project right now, do chat with me, no need to pay upfront just stay in touch
Also epub is same as a zip is a new learning for me! thanks for that
Just saw your screenshot, this exactly is a stream error
Ah super sad I can't find an epub with cover image? Do you have one can you send over chat?
I would really like to do more projects with you in future
Hi, client!
I read your project very detailed description carefully and also checked the screenshots.
Actually I have experienced yauzl library so I feel confident about your project.
Let's have a chat and resolve it right now.
Best regards.
Good day,
I will gladly help you with your project. I am a experienced NodeJS/NestJS developer and think this should be an easy fix (as you mentioned). I can start immediately once the project is awarded to me.
Greetings
Matthias