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 01-29-2017, 05:29 PM   #1
Trigun
Connoisseur
Trigun began at the beginning.
 
Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
convert html to mobi with remote img

if i have a html file with something like
Code:
<img src="http://www.somewhere.com/smiley.gif" alt="Smiley face" height="42" width="42">
can calibre do the conversion without lose the img? (hidden command? :-P )
or i'm forced to manual save the images and change the links?
Trigun is offline   Reply With Quote
Old 01-29-2017, 06:06 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You have to have the images in the Mobi file.
JSWolf is offline   Reply With Quote
Advert
Old 01-29-2017, 07:15 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
and what would happen if you had no network access?

Embedded is the only safe/robust way
theducks is online now   Reply With Quote
Old 01-29-2017, 10:05 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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Conversion explicitly does not download remote resources, since having the output of conversion depend on the state of the network is a bad design. Instead use one of the many, many tools that can download resources in html files automatically first. For instance, you can import the HTML intot he calibre ebook editor as a new ebook and then use the download remote resources tool in the editor.
kovidgoyal is offline   Reply With Quote
Old 01-30-2017, 04:53 AM   #5
Trigun
Connoisseur
Trigun began at the beginning.
 
Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
i was thinking calibre could have downloaded the img automatically with some sort of options :-D

i made a program that get the html to a page convert with calibre standalone and send it to kindlemail...
i need to handle the img with my code :-(

Last edited by Trigun; 01-30-2017 at 04:55 AM.
Trigun is offline   Reply With Quote
Advert
Old 01-30-2017, 05:00 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Conversion explicitly does not download remote resources, since having the output of conversion depend on the state of the network is a bad design. Instead use one of the many, many tools that can download resources in html files automatically first. For instance, you can import the HTML intot he calibre ebook editor as a new ebook and then use the download remote resources tool in the editor.
Speaking of downloading remote resources, is there a way to replace an image with an image that's online and no downloaded to the local computer? If not, can such a feature be implemented?
JSWolf is offline   Reply With Quote
Old 01-30-2017, 06:05 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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just use any of the many existing command line tools that do this, for instance, wget http://askubuntu.com/questions/37304...he-file-stored
kovidgoyal is offline   Reply With Quote
Old 01-30-2017, 06:13 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Just use any of the many existing command line tools that do this, for instance, wget http://askubuntu.com/questions/37304...he-file-stored
I don't have any problem saving the image to disk to them replace the existing image. What I would like is to be able to copy the image's URL and use that to replace the image in the editor. That would be a lot easier and save a few steps.
JSWolf is offline   Reply With Quote
Old 01-30-2017, 06:36 AM   #9
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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@JSWolf I was not replying to you. I ahve no idea how you expect the editor to replace an exiting local image with a remote URL, how is the editor supposed to know what the remote URL to use is?
kovidgoyal is offline   Reply With Quote
Old 01-30-2017, 07:29 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
@JSWolf I was not replying to you. I ahve no idea how you expect the editor to replace an exiting local image with a remote URL, how is the editor supposed to know what the remote URL to use is?
By pasting the URL into a dialog box of some kind. So I could look up the image, copy the URL, paste it into a dialog box and Calibre goes and gets the image to use as the replacement.
JSWolf is offline   Reply With Quote
Old 01-30-2017, 07:49 AM   #11
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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Instead paste the URL into the HTML directly and use the tool to download external resources, once you are done adding all the images you want
kovidgoyal is offline   Reply With Quote
Old 01-30-2017, 07:34 PM   #12
Trigun
Connoisseur
Trigun began at the beginning.
 
Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
Quote:
Originally Posted by kovidgoyal View Post
Instead paste the URL into the HTML directly and use the tool to download external resources, once you are done adding all the images you want
what tool? wget?
Trigun is offline   Reply With Quote
Old 01-30-2017, 07:41 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,729
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Trigun View Post
what tool? wget?
Perhaps this tool

Click image for larger version

Name:	3.jpg
Views:	293
Size:	44.8 KB
ID:	154648

BR
BetterRed is online now   Reply With Quote
Old 01-30-2017, 07:47 PM   #14
Trigun
Connoisseur
Trigun began at the beginning.
 
Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
Quote:
Originally Posted by BetterRed View Post
Perhaps this tool

Attachment 154648

BR
u could have included the title bar on the screen :-) i have no idea what tool is :-D
Trigun is offline   Reply With Quote
Old 01-30-2017, 08:20 PM   #15
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Trigun View Post
u could have included the title bar on the screen :-) i have no idea what tool is :-D
As per post #4 (where the tool was originally mentioned) - the screenshot is from the calibre Editor.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why convert html to mobi can't get the image kindleren Conversion 10 08-25-2012 02:02 PM
Attempting to convert HTML to MOBI exxyea Conversion 3 01-03-2012 01:05 PM
What to use to convert Epub or HTML to Mobi? Artha Kindle Formats 2 08-24-2011 07:47 AM
Convert Tutorial from .html to .mobi vmars316 General Discussions 0 05-16-2011 11:20 PM
Convert HTML to MOBI (HTML recognized as ZIP file) pdubois Conversion 1 01-25-2011 12:55 PM


All times are GMT -4. The time now is 07:38 PM.


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