-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kindle-send breaks on svg images #28
Comments
@volkerwestphal I can see the root cause of this error is a redirection (from https://michael.stapelberg.ch/posts/2022-07-02-rsync-how-does-it-work to https://michael.stapelberg.ch/posts/2022-07-02-rsync-how-does-it-work/, notice the slash at the end after the redirection). If you use A separate problem is that on many e-book readers there is only a limited set of media files supported. Related issue is #27. @nikhil1raghav do you think |
Well, redirects are daily business on the web. These are fairly easy to handle and should not disturb any robust program. Regarding the limited media type support, I think it's unreasonable to expect a small tool like What's the point? While surfing (mostly HN) I often stumble upon long and interesting articles on the web. I put these links in a file and carry on. Once in a while I start |
Yep, I fully agree here. But they do make some images not available in the final documents. I've checked the code and it seems that
Sure, but would you accept a PR to add an optional conversion capabilities to allow Kindle users to see more images in their articles prepared and sent by |
This is something to ask @nikhil1raghav. Adding more image formats doesn't solve the actual problem. It means adding code that is only rarely used. You never get to support all image formats out there. However, updating |
Sure, I meant to tag @nikhil1raghav BTW the last release does exactly that:
In my case despite the error the output file is produced.
|
Also did a retest, still using 2.0.0-rc1, still on Windows.
(The german text basically gives the same message as the line below it.) Along with your screenshot (most probably taken on Linux) points the problem in another directory: Under Windows, you can't have a file name with a question mark in it.:
No file was created. There at least nine characters invalid for use in file names under Windows, along with a couple of invalid strings. Sources:
It looks like |
@volkerwestphal I've created a new issue #29 that represents what happens here. I am not really sure if @nikhil1raghav is still around maintaining this repo. I've created a fork to fix some bugs on my own. I also created a release that should fix this file naming problem. You can test it out. |
@przemekd will be glad to merge your fix. Right now not getting much time to fix the bugs. PRs are always welcome. Thanks for fixing this. |
@nikhil1raghav Great! Let me prepare PRs to fix some of these issues I've already spotted. I'll get back to you soon. And thanks a lot for this little tool, it's very handy! |
I close this issue with the following insights:
|
Describe the bug
Kindle-send breaks the download if the webpage includes a .svg image.
To Reproduce
Steps to reproduce the behavior:
kindle-send download https://michael.stapelberg.ch/posts/2022-07-02-rsync-how-does-it-work
results in
Expected behavior
In an ideal world, kindle-send would convert the svg into a supported image format and deliver the epub.
In the real world, it's sufficient to skip the image and continue the job.
Versions
Nikhil and Mattias, thank you for creating kindle-send.
The text was updated successfully, but these errors were encountered: