percollate icon indicating copy to clipboard operation
percollate copied to clipboard

Non-normal image link formats are not recognized

Open jinshuqishi2019 opened this issue 1 year ago • 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

jinshuqishi2019 avatar Aug 04 '23 09:08 jinshuqishi2019

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...

danburzo avatar Aug 04 '23 10:08 danburzo

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.

jinshuqishi2019 avatar Aug 04 '23 13:08 jinshuqishi2019