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-02-2011, 03:32 PM   #16
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
@scissors, I don't claim to know anything about News recipes but I've used the following command in my Calibre plugin to convert an image to greyscale
Code:
img.quantize(number_colors=8, colorspace='GRAYColorspace')
This code also works, although the image size increased to 43KB from 38KB.
Starson17 is offline   Reply With Quote
Old 11-02-2011, 03:36 PM   #17
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Starson17 View Post
This code also works, although the image size increased to 43KB from 38KB.
Oops!
jackie_w is offline   Reply With Quote
Advert
Old 11-02-2011, 03:45 PM   #18
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
Oops!
Well, the code was interesting. Thanks for that. Also, I can't be sure how the final compression in an EPUB would turn out. I just looked at the raw html/jpg output from the recipe.
Starson17 is offline   Reply With Quote
Old 11-02-2011, 03:46 PM   #19
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
Quote:
Originally Posted by Starson17 View Post
That code won't do it. This will:

It saved 3KB from a 38KB image
It did indeed work! thanks

I did a SUN download, with and without it.

5.9m down to 4.7m

Thanks all who answered in this thread.
scissors is offline   Reply With Quote
Old 11-02-2011, 03:48 PM   #20
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by scissors View Post
It did indeed work! thanks
I'm glad to hear it. I put the code into the Recipe code sticky for future reference.
Starson17 is offline   Reply With Quote
Advert
Old 11-02-2011, 04:35 PM   #21
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by scissors View Post
I did a SUN download, with and without it.
5.9m down to 4.7m
Your 20% final is better than my 8% raw reduction. That's almost worth it.
Starson17 is offline   Reply With Quote
Old 11-04-2011, 07:17 AM   #22
madeinlisboa
Enjoy Life
madeinlisboa began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jun 2011
Location: Portugal
Device: Kindle
Quote:
Originally Posted by alansplace View Post
i'd try this workflow:

1. convert to epub using calibre
2. use calibre's right click option 'tweak epub' to explode the epub
3. use IrfanView (free software at cnet) to batch convert all the graphics files.
4. rebuild the epub using the tweak epub window (it should still be open).
5. convert the epub to mobi with calibre.
That's what I call a great tip! Thanks!
I didn't use IrfanView but FastStone Viewer. The size of one of my epub files went from 18mb down to 5mb (almost a 400% decrease)!

This is the best method by far, because you can totally control the final image parameters.

Thanks a lot
madeinlisboa is offline   Reply With Quote
Old 11-04-2011, 08:56 AM   #23
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by madeinlisboa View Post
TThis is the best method by far, because you can totally control the final image parameters.
I suspect the same level of control is available using ImageMagick if you get the parameters right. From what I can tell ImageMagick is fairly powerful.
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML + Images = MOBI without Images SunLight Amazon Kindle 5 08-25-2012 02:27 PM
Digitimes: Asustek to launch 8-inch 64-grayscale e-book reader at below US$599 kjk News 12 08-15-2010 01:31 PM
Higher level grayscale, lower contrast? manifestor HanLin eBook 7 05-07-2010 08:32 PM
How much better is eInk from grayscale LCD screens? angelbleu Which one should I buy? 2 11-13-2009 05:19 AM
Cybook is 4 grayscale vs. PRS-505 is 8 grayscale JoeC Bookeen 4 11-06-2007 10:25 AM


All times are GMT -4. The time now is 08:13 AM.


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