Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-29-2018, 03:00 PM   #1
wby238
Junior Member
wby238 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
How to convert a txt(markdown format) to epub with pictures?

I had found a similar thread, `https://www.mobileread.com/forums/showthread.php?t=45023`, but its link is unavailable, so are there any new tutorials or demos?

example txt file:
```md
##Division 1
###Chapter 1
Paragraph 1
Paragraph 2
Paragraph 3
![test_image](http://abc.com/def.jpg)
```
wby238 is offline   Reply With Quote
Old 04-29-2018, 05:30 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,198
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
How about here or here
jackie_w is offline   Reply With Quote
Old 04-30-2018, 12:22 AM   #3
wby238
Junior Member
wby238 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
Quote:
Originally Posted by jackie_w View Post
How about here or here
I have used the standard markdown syntax you give, `![test_image](http://abc.com/def.jpg)`, this is a image use markdown syntax.

I also download the image to the same directory, and change it to `![test_image](def.jpg)`, but it stll can't work.
wby238 is offline   Reply With Quote
Old 04-30-2018, 01:36 AM   #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,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cant use URLs calibre conversion only works on locally available files. I dont know if the markdown input plugin supports relative paths to images, but it should work with absolute paths.
kovidgoyal is offline   Reply With Quote
Old 04-30-2018, 02:24 AM   #5
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,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ANd this adds support for relative images when converting via ebook-convert

https://github.com/kovidgoyal/calibr...457e8f4b2975d0
kovidgoyal is offline   Reply With Quote
Old 04-30-2018, 07:27 AM   #6
wby238
Junior Member
wby238 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
ANd this adds support for relative images when converting via ebook-convert

https://github.com/kovidgoyal/calibr...457e8f4b2975d0
It seems that this doesn't embed the local image to the EPUB.
What I want is like this demo.
https://github.com/kovidgoyal/calibr.../lrf/html/demo

So are there any methods to embed pictures to epub?
wby238 is offline   Reply With Quote
Old 04-30-2018, 08:48 AM   #7
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,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, it does.
kovidgoyal is offline   Reply With Quote
Old 04-30-2018, 10:02 AM   #8
wby238
Junior Member
wby238 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: kindle
Thumbs up

Quote:
Originally Posted by kovidgoyal View Post
Yes, it does.
It works, thanks!
wby238 is offline   Reply With Quote
Reply

Tags
conversion, picture, question, txt to epub

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing paragraph format in txt to epub with block and markdown Tattvadarzin Conversion 4 10-25-2013 02:49 AM
Convert from epub/mobi back to TXT or any format? KDA1 Calibre 1 01-26-2012 04:19 PM
->Txt+Markdown Perkin Calibre 2 12-11-2010 04:04 AM
Convert .TXT to .EPUB Arfer Calibre 6 09-02-2010 10:41 AM
Adding pictures to epub from a txt file p3aul Calibre 3 04-16-2009 06:05 PM


All times are GMT -4. The time now is 11:08 AM.


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