|  01-29-2017, 05:29 PM | #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? | 
|   |   | 
|  01-29-2017, 06:06 PM | #2 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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.
		 | 
|   |   | 
| Advert | |
|  | 
|  01-29-2017, 07:15 PM | #3 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 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 | 
|   |   | 
|  01-29-2017, 10:05 PM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  01-30-2017, 04:53 AM | #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. | 
|   |   | 
| Advert | |
|  | 
|  01-30-2017, 05:00 AM | #6 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  01-30-2017, 06:05 AM | #7 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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
		 | 
|   |   | 
|  01-30-2017, 06:13 AM | #8 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  01-30-2017, 06:36 AM | #9 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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?
		 | 
|   |   | 
|  01-30-2017, 07:29 AM | #10 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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.
		 | 
|   |   | 
|  01-30-2017, 07:49 AM | #11 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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
		 | 
|   |   | 
|  01-30-2017, 07:34 PM | #12 | 
| Connoisseur  Posts: 98 Karma: 10 Join Date: Oct 2014 Device: kindle pw3 | |
|   |   | 
|  01-30-2017, 07:41 PM | #13 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none |  | 
|   |   | 
|  01-30-2017, 07:47 PM | #14 | |
| Connoisseur  Posts: 98 Karma: 10 Join Date: Oct 2014 Device: kindle pw3 | Quote: | |
|   |   | 
|  01-30-2017, 08:20 PM | #15 | 
| Grand Sorcerer            Posts: 6,267 Karma: 16544702 Join Date: Sep 2009 Location: UK Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 | |
|   |   | 
|  | 
| 
 | 
|  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 |