![]() |
#1 |
Connoisseur
![]() 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"> or i'm forced to manual save the images and change the links? |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() 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. |
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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.
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
|
|
![]() |
![]() |
![]() |
#13 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() Posts: 98
Karma: 10
Join Date: Oct 2014
Device: kindle pw3
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |