Replies: 1 comment 1 reply
-
|
In the latest Percollate version (4.2.0), the error is:
When bundling into an EPUB, images must be percollate epub -o test.epub local.html --url=https://substack/original/url |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
node --version: v22.7.0npm --version: 10.8.2yarn --version, if using Yarn:percollate --version: 2.1.0Description
I couldn't find a way to have percollate see the full article on, say a paywalled Substack. So I get Chrome to save the page as HTML (with a foo_files directory to have the images).
This renders fine in a browser, but when directing percollate to bundle that into an epub, it complains and the images don't come out right.
Example:
Oddly, the links inside the HTML file are not
file:///links, but I guess no absolute path can be given there, so yeah.The "saved webpage" HTML instead has:
<img src="./foo_files/somehash.jpg">as the tagThe resulting epub has
<img src="./rr-47d0c990-66f9-11ef-a3b5-398245b910c0.jpg" />so should roughly work, but that file is not present in the epub zip :/Beta Was this translation helpful? Give feedback.
All reactions