Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2018, 12:11 PM   #1
sup
Connoisseur
sup began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Make mobis downloaded via a recipe smaller

My e-mail provider refuses to send my downloaded news to my Kindle because the files are to large. I came up with this code (do not run if you have a tmp directory in your working directory):

Code:
ebook-convert big.mobi tmp.epub
unzip -d tmp tmp.epub   
cd tmp
find . -type f  \
-iregex  '^.*[.]\(jpg\|jpeg\|png\|gif\)$' \
-exec mogrify -quality 85 -resize '500x500>' {} \;
zip -Duro ../tmp1.epub .
cd ..
rm -rf tmp
ebook-convert tmp.epub small.mobi
Isn't there a simpler way to tell calibre to convert the images to smaller sizes?
sup is offline   Reply With Quote
Old 11-06-2018, 01:50 PM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,537
Karma: 82439515
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the Calibre forum.
HarryT is offline   Reply With Quote
Advert
Old 11-07-2018, 12:55 AM   #3
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: 35,922
Karma: 12784233
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
choose an output profile in calibre with a small screen size, or use the compress_news_images parameter in the recipe itself.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make the size from 200MB 400pp epub .. smaller? How? hlk123 Calibre 9 02-09-2018 05:40 PM
How to make line spacing smaller Waylander Amazon Kindle 1 11-28-2013 02:37 PM
Way to make font smaller in converted Lit files? MidknytOwl Sony Reader 3 06-16-2008 09:47 AM
[calibre] recipe - smaller font? moneytoo Calibre 0 06-01-2008 09:00 AM
Can I make it smaller? jennaclaire Sony Reader 6 01-14-2008 10:10 AM


All times are GMT -4. The time now is 05:27 PM.


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