danburzo/percollate

Non-normal image link formats are not recognized

jinshuqishi2019 opened this issue · 2 comments

Environment

Operating System: Debian10
node --version:v18.17.0
npm --version: 9.6.7
percollate --version:v4.0.2

Description

Hello!
Now I want to generate epub from offline html for reading, one problem I found using this tool is that it can't handle this image format.

https://cubox.pro/c/filters:no_upscale()?valid=false&imageUrl=https%3A%2F%2Fpicx.zhimg.com%2F50%2Fv2-a6985ab263c4203730bb802c71b2dc90_720w.jpg%3Fsource%3D1940ef5c

Even if I use a command like this

percollate epub 1.html -o 1.epub --inline

What can I do to solve this problem to make it work

It seems at the moment we check the src of images to match a known image file extension, while the example image given above uses an image processing proxy, with the URL pathname as /c/filters:no_upscale(). Unfortunately, I can’t think of an easy user-level workaround for this...

Thank you very much.
I solved the image problem by getting html to implement inline images with the help of single-file tool and then converted to epub using percollate. further multiple html can be converted into one epub to read as a book.