|  10-18-2010, 03:19 AM | #1 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
				
				remove all images ?
			 
			
			is there an option anywhere to strip all images from epub, mobi.... the only place I can find a no images option is in PDF input options. if I have some other ebook format, which has unwanted images , how can I auto-strip them? | 
|   |   | 
|  10-18-2010, 04:22 AM | #2 | 
| Wizard            Posts: 3,130 Karma: 91256 Join Date: Feb 2008 Location: Germany Device: Cybook Gen3 | 
			
			If you want to convert the ebook, (ab-)use Calibre's header/footer removal option.
		 | 
|   |   | 
| Advert | |
|  | 
|  10-18-2010, 04:50 AM | #3 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
			
			I don't follow -  1. what does remove header / footer have to do with remove images. Are you saying there is some regex expression whcih I can insert into the remove header line that will actually remove images & not headers ? can you give an example please 2. my main question was can I remove images from anything other than PDF format e.g. I have a book in epub, lit, mobi whatever, it contains text ( which I want) and pictures ( which I don't want) . can I strip out the pictures | 
|   |   | 
|  10-18-2010, 05:02 AM | #4 | 
| Wizard            Posts: 3,130 Karma: 91256 Join Date: Feb 2008 Location: Germany Device: Cybook Gen3 | 
			
			Have a look at how the images are embedded into the ebook. Write a regex that removes the embedding tags. All done. Who said you could only remove headers and footers?
		 | 
|   |   | 
|  10-18-2010, 05:11 AM | #5 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | |
|   |   | 
| Advert | |
|  | 
|  10-18-2010, 05:25 AM | #6 | 
| Wizard            Posts: 3,130 Karma: 91256 Join Date: Feb 2008 Location: Germany Device: Cybook Gen3 | 
			
			Well, most (?) of the ebook formats, at least to my knowledge, use some form of (X)HTML for contents, so you'd probably see img- tags. Still, if I were you, I'd check at least a few of the books I'd want to process to see how embedding is done.
		 | 
|   |   | 
|  10-18-2010, 09:42 AM | #7 | |
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | Quote: 
  Those options simply provide two convenient places where you can add  a regex to remove something within the document that matches the regex.  Anything that gets matched gets removed and it doesn't matter in which of the two places you put the regex.  If you write a regex that matches a header, and put it in the remove footer box, it will remove the header.  If you make it match my name, it will remove my name from the text.  If you make it match "the" it will remove the word "the" wherever it is found, etc.  If you make it match a link to an image, it will remove that link.  (I have no idea if it will actually remove the image from the file, but it will make the link disappear, so you will no longer see the image.) | |
|   |   | 
|  10-18-2010, 10:15 AM | #8 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
			
			thanks - I thought that was how it worked; but is there not a danger that if you remove the IMG tags but not the bits & bytes which make up the image, then the reader program will attempt to render the image, or the image hyper link  as a text stream ?
		 | 
|   |   | 
|  10-18-2010, 10:28 AM | #9 | |
| 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 | Quote: 
  ) The image is still in the file, just never called upon to render. OTOH, if tou removed the Image FILE and left the URI, you keep the place holder and get the "Broken Image" symbol, where it was. | |
|   |   | 
|  10-18-2010, 11:26 AM | #10 | |
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | Quote: 
 | |
|   |   | 
|  10-18-2010, 11:38 AM | #11 | |
| 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 | Quote: 
  There are still broken links after conversion. Actually, I find that a "feature". I can go back repair the error   | |
|   |   | 
|  10-18-2010, 12:06 PM | #12 | 
| Wizard            Posts: 3,130 Karma: 91256 Join Date: Feb 2008 Location: Germany Device: Cybook Gen3 | |
|   |   | 
|  10-18-2010, 01:22 PM | #13 | 
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | |
|   |   | 
|  10-19-2010, 02:14 AM | #14 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
			
			so , assuming that it is  all pairings of IMG tags need to be removed, what would be the regex syntax please. they occur in pairs either side of the image URL, don't they ? | 
|   |   | 
|  10-19-2010, 04:47 AM | #15 | 
| Wizard            Posts: 3,130 Karma: 91256 Join Date: Feb 2008 Location: Germany Device: Cybook Gen3 | 
			
			Go read this. After that, go read the source of some of your ebooks to see how img- tags work. If, after you've done those two things, you still don't know what to do, come here and ask again.
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Remove Page Break after Images | luthar28 | ePub | 17 | 04-05-2017 03:16 PM | 
| Remove all images and Covers? | Pselus | Calibre | 4 | 03-18-2015 02:47 AM | 
| HTML + Images = MOBI without Images | SunLight | Amazon Kindle | 5 | 08-25-2012 02:27 PM | 
| Remove Books - Restoring Confirm to remove books | Caffey | Calibre | 6 | 09-20-2010 09:23 AM | 
| RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |