12-16-2019, 09:02 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Kindle Touch
|
Remove all images during individual/mass conversion
Device: Kindle Paperwhite
Use case: When I convert books to mobi I'd like to be able to cut all images from the result, because it saves space and it's not like Kindle can display images anyway. Is it possible to automate this with Calibre? |
12-16-2019, 11:14 AM | #2 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
My K4 (e-ink) and my Kobo Aura2 both display images. True, they are grey scale, but they are displayed. Maps are visible SAVE SPACE (And you don't claim to read Manga) ???? most (~65%) of my library is made up of novels under 400K. Very few go past 1M and those tend to have embedded fonts and additional images (Image only Chapter heads/numbers. your plan would destroy the book). With 4-8G of device storage, I have almost 100 books (almost a half-years reading) and not even using 1/2 the storage. OTOH I do reduce HiRes covers to 90% of my screen size (600x800). That saves PROCESSING (scaling to device screen) using the resize cover plugin (this changes the Library copy, which will be also become embedded on demand) Please reconsider your options or you may end up with a lot of damaged content when the cover is not the only image This is not to say that the use of the image tools in the Calibre editor should not be SELECTIVELY applied Nor the removal of excessive advertising (Authors: do we really need HiRes covers from all your published works included? Forthcoming ) |
Advert | |
|
12-16-2019, 12:17 PM | #3 |
Addict
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Kindles will display the images, you probably mean they just look terrible. Mostly true, in my experience. But it is usually the fault of the image itself, or how it is coded, GIGO. How can publishers be so bad at this??? Often the images in the text are awful, but the ads are great, how about that! Maybe that's author versus publisher.
I keep everything in Calibre as epub only...partly for ease of editing, also because I have multiple devices, and yes, to save space. If I get a new book, say a novel from Amazon, that is several megabytes large, it's usually due to many and/or huge images, and sometimes fonts. So I automatically edit these books. I take out unwanted images, especially ads, and also any font files (your choice, I'm happy with my reader's fonts). Keep important images like the cover, maps, stuff that is story-helpful or just pleasant. Then I use the compression tool (Tools->Compress images losslessly), but I tick the box that says 'Enable lossy compression' and set it to 50. That results in a huge compression for jpg files, and I absolutely can't see any difference in viewing on a Kindle or a Kobo. A bad image stays bad, but a good image still looks good. Yes, I've degraded the images, but if I can't tell on my reader...so what? I usually do a lot more, but if you just want to cut the size, it takes about one minute to open the editor, use the font manager to remove fonts, use the compression tool, save and exit. Typical novel that starts at 4.5mb usually drops to between .4 and .6 -- unless it is just a huge book in text, like over 1,000 pages. |
12-16-2019, 12:30 PM | #4 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sometimes all the wasted space is due to cover images to advertise other books by the author. In Penguin eBooks, there have a page that's worthless that they embed fonts that are again worthless. Also, use Calibre to losslessly compress the images. That will save space. Delete every HTML file you don't need like previews, list of books by the author, reviews, etc. And as for images, when I do a lossless compression in Calibre, I also recompress using the default value of 80. This does reduce the size of images.
SO you can reduce the size of the eBooks if you do it by hand without ruining them. |
12-16-2019, 01:19 PM | #5 |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
@eduard93:
I agree with the excellent advice offered above. However, to answer your question, yes, it is possible to remove images on conversion. Look into the feature in Preferences > Conversion > Common Options > Search & Replace. With a bit of trial and error, you should be able to find a regular expression to find <img> tags and replace them with nothing. In fact, I just tested with expression <img.*?> Calibre removed the tag and the corresponding image as I converted from ePub to AZW3. Consider instead of replacing with nothing, it might be helpful to replace with a text box "image removed here" to clarify possible gaps in meaning. Last edited by Brett Merkey; 12-16-2019 at 01:34 PM. |
Advert | |
|
12-17-2019, 07:56 AM | #6 |
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Kindle Touch
|
et al: Obviously Kindle can display images, but I mainly read fiction and full-color illustrations on 6'' monochrome display are useless for me.
@Brett would it work from any format? Obviously it works with epub which is zipped html, but what about other non html-based formats? Or does Calibre converts into intermediary html and runs regexp on it? |
12-17-2019, 07:59 AM | #7 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you close to running out of space on your Kindle?
Last edited by JSWolf; 12-17-2019 at 08:56 PM. |
12-17-2019, 08:55 AM | #8 | |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
|
|
12-17-2019, 10:19 AM | #9 | |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
12-17-2019, 01:50 PM | #10 | |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Quote:
If that works then better would be to examine the html and see if images are wrapped in a figure tag and put the display none on it (or both figure and img as well as caption?). |
|
12-17-2019, 01:58 PM | #11 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The OP wanted to save SPACE. The file still would occupy space, just not offend their vision
|
12-17-2019, 02:27 PM | #12 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I suggested how to save space. It seems the OP doesn't want to try my suggestions.
|
12-17-2019, 05:57 PM | #13 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Yes, very true. I should have added that after the css hack they could then delete the images in the images folder, after first determining which one is the cover image and not delete it. If you simply delete the images then the result in the e-reader is ugly.
|
12-17-2019, 08:26 PM | #14 |
Guru
Posts: 760
Karma: 2090886
Join Date: May 2019
Device: Kindle Oasis 1st Gen
|
|
12-19-2019, 06:50 AM | #15 | |||
Junior Member
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Kindle Touch
|
Quote:
Quote:
Quote:
|
|||
Tags |
convent, images omitted from ebook, kindle, mobi conversion |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
remove all images ? | cybmole | Calibre | 20 | 03-12-2024 07:02 AM |
Remove background images from pdfs? perhaps all images? | MarjaE | 2 | 10-17-2018 03:30 PM | |
Mass conversion on specific file type. | C Alberga | Conversion | 2 | 08-20-2016 11:18 PM |
Mass conversion issues | Evthymios | Conversion | 3 | 02-25-2014 06:26 PM |
Mass conversion software for fb2 ebooks | Lostlilkat | General Discussions | 1 | 10-17-2011 08:34 PM |