07-20-2011, 01:00 PM | #1 |
Enjoy Life
Posts: 26
Karma: 10
Join Date: Jun 2011
Location: Portugal
Device: Kindle
|
Images to grayscale
I'm sorry if this is a dup, but I searched and found nothing.
Is it possible to change images to grayscale when a book is converted? In this case from CHM to MOBI. It would lower substantially the final size. |
07-21-2011, 07:02 PM | #2 |
Enjoy Life
Posts: 26
Karma: 10
Join Date: Jun 2011
Location: Portugal
Device: Kindle
|
Please, is my question senseless?
|
07-21-2011, 07:37 PM | #3 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, it isn't.
|
07-22-2011, 06:51 AM | #4 |
Enjoy Life
Posts: 26
Karma: 10
Join Date: Jun 2011
Location: Portugal
Device: Kindle
|
And?....
|
07-22-2011, 07:25 AM | #5 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
07-22-2011, 07:44 AM | #6 |
Enjoy Life
Posts: 26
Karma: 10
Join Date: Jun 2011
Location: Portugal
Device: Kindle
|
First, I thought that mr. kovidgoyal was being ironic (his answer was right after my second question and it fitted perfectly), and now YOU are being ironic. What it the matter with you people in this forum?
|
10-30-2011, 09:53 AM | #7 | |
Addict
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
|
Quote:
Could this command be added Kovid? Last edited by scissors; 10-30-2011 at 01:11 PM. |
|
11-01-2011, 02:26 PM | #8 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
|
||
11-01-2011, 03:30 PM | #9 | |
Addict
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
|
Exactly.
Quote:
I went to an imagemagik sit and found the -colorspace command. I tried colorspace=gray but calibre gives errors. Other commands seem to need actual filenames in the command line? I'm not sure how much calibre uses and even how to implement what it does use. Can you give a link to your rotate example - is it somewhere in the re-usable code section? |
|
11-01-2011, 08:58 PM | #10 |
Grand Sorcerer
Posts: 6,208
Karma: 16534692
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
11-02-2011, 10:44 AM | #11 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Spoiler:
|
|
11-02-2011, 02:39 PM | #12 |
Addict
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
|
Thanks for the replies guys
both colorspace='GRAYColorspace' img.colorspace='GRAYColorspace' compile. I added starson's code to the end of the Sun via google recipe. Images rotate, but are still colour. :-( I put the command in both IF statements to try and cover all bases, but nothing seems to happen. Spoiler:
Last edited by scissors; 11-02-2011 at 03:00 PM. |
11-02-2011, 03:01 PM | #13 | |
Grand Sorcerer
Posts: 5,886
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
|
try this
Quote:
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. |
|
11-02-2011, 03:07 PM | #14 |
Grand Sorcerer
Posts: 6,208
Karma: 16534692
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@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') |
11-02-2011, 03:20 PM | #15 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Spoiler:
It saved 3KB from a 38KB image |
|
|
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 |