|
|
Thread Tools | Search this Thread |
07-04-2021, 06:48 AM | #1 |
Member
Posts: 12
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
ebook-convert exporting to markdown not respecting --keep-image-references
Hi everybody,
First of all, I want to say thank you for all your support in this forum. I noticed that when I use ebook-convert to export a recipe to txt it does not respect the --keep-image-references option. Instead of referencing an image using the original link a relative link in the form of "images/000002.png" is embedded. But even worse the folder images is not created anywhere. Do you have an explanation for this behavior? Is there a way to preserve the original link to an image? If not is there a way to "see" the referenced folder with the images? Best regards Andy |
07-04-2021, 09:53 AM | #2 |
creator of calibre
Posts: 43,907
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Conversion creates a single output file. So there is no place to put images when converting to txt. If you want to preserve images you need to convert to a format that has scope for them, such as txtz and use --keep-image-references
and --txt-output-formatting=markdown You can then unzip the txtz file. |
Advert | |
|
07-04-2021, 01:20 PM | #3 |
Member
Posts: 12
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
Thanks, for the hint. Is there a possibility to preserve the original image reference (e.g. https://www.example.org/image.png) instead of using the downloaded png?
|
07-04-2021, 11:31 PM | #4 |
creator of calibre
Posts: 43,907
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there isnt.
|
07-06-2021, 10:17 AM | #5 | |
the rook, bossing Never.
Posts: 11,225
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
RTF is very portable and maintains most of the ebook info including images. |
|
Advert | |
|
07-27-2023, 09:38 AM | #6 |
Member
Posts: 17
Karma: 50
Join Date: Jan 2019
Device: none
|
Have you considered adding such an option? So that --keep-links and --keep-image-references would show what they were originally linking to, but even in plain txt files.
Also, the option to save a log of the conversion process in the same directory would be great. Last edited by barbiedolphin; 07-27-2023 at 09:56 AM. |
Tags |
ebook-convert, images, markdown |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook-convert with recipe not respecting chapter-mark option | aschiller | Conversion | 6 | 01-27-2021 10:30 AM |
Is there a way to convert html and pdf to json or markdown with Calibre? | bounce | Conversion | 3 | 09-19-2020 01:43 AM |
How to convert a txt(markdown format) to epub with pictures? | wby238 | Conversion | 7 | 04-30-2018 10:02 AM |
Which ereader (or ebook store) is best for respecting reader privacy? | El Macho | Which one should I buy? | 9 | 06-13-2014 06:38 AM |
Markdown: Direct image references? | Snorkledorf | Conversion | 4 | 07-11-2013 12:06 PM |