Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2021, 06:48 AM   #1
aschiller
Member
aschiller began at the beginning.
 
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
aschiller is offline   Reply With Quote
Old 07-04-2021, 09:53 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-04-2021, 01:20 PM   #3
aschiller
Member
aschiller began at the beginning.
 
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?
aschiller is offline   Reply With Quote
Old 07-04-2021, 11:31 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,907
Karma: 22666668
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there isnt.
kovidgoyal is offline   Reply With Quote
Old 07-06-2021, 10:17 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,225
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by aschiller View Post
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?
I use RTF to export from calibre for wordprocessing. I'd only sometimes copy & paste into a text editor to remove formatting.

RTF is very portable and maintains most of the ebook info including images.
Quoth is offline   Reply With Quote
Advert
Old 07-27-2023, 09:38 AM   #6
barbiedolphin
Member
barbiedolphin is on a distinguished road
 
Posts: 17
Karma: 50
Join Date: Jan 2019
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No, there isnt.
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.
barbiedolphin is offline   Reply With Quote
Reply

Tags
ebook-convert, images, markdown


Forum Jump

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


All times are GMT -4. The time now is 10:23 AM.


MobileRead.com is a privately owned, operated and funded community.