Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2018, 11:11 AM   #1
sup
Connoisseur
sup began at the beginning.
 
Posts: 95
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, 12: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,544
Karma: 93383043
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
Old 11-06-2018, 11:55 PM   #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: 43,843
Karma: 22666666
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


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 04:40 PM
How to make line spacing smaller Waylander Amazon Kindle 1 11-28-2013 01:37 PM
Way to make font smaller in converted Lit files? MidknytOwl Sony Reader 3 06-16-2008 08:47 AM
[calibre] recipe - smaller font? moneytoo Calibre 0 06-01-2008 08:00 AM
Can I make it smaller? jennaclaire Sony Reader 6 01-14-2008 09:10 AM


All times are GMT -4. The time now is 11:21 AM.


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