|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Turn all images in Kobo Forma to grayscale (for space & speed)
I have a Kobo Forma. Almost all my ebooks come with an image for the cover, and when they don't, I get Calibre to find and download a cover.
Some of my ebooks come with images. For example, maps and photographs. Almost always, these images are full colors, unless the photos are from, um, the 1970s or earlier when film was still black and white or grayscale. Because my Forma only does grayscale, I would like all images that are in my Kobo Forma to be grayscale. This is to save on limited space (and perhaps a secondary benefit is faster page turns / image-loading). How can I make this happen? Last edited by droopy; 10-14-2019 at 08:16 PM. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Let me get what you want straight:
You want ALL images to be grey scale, not just covers? For that, you need to Unpack (U in Calibre), process the images with you favorite tool (I used to use Paintshop Pro), then save (the Unpack tool has remained open all this time). Note: This process is performed on the LIBRARY COPY, COLOR IS GONE for good |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
Another way to save space is to simply compress the images. Open the book in the editor, and there is a tool: Tools-->Compress images losslessly. This will give you some, usually small, compression, but in the dialogue there is a box to check for Enable lossy compression of JPEG images. Set this to about 50 in the compression quality box and it can save you significant space. A 1.5 mb jpg may go down to 150 kb...on that order, anyway.
I have a Forma, and found that this drastic compression has no visible effect on the picture you see on the reader. It is very fast and will do all the images at once. But if you have big png images it won't help much, and takes a long time. |
![]() |
![]() |
![]() |
#4 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
I don't want the library copy touched |
|
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
That is, unless David thinks that is worth the effort to add to that option Kobo Utilities. Is the Forma really so under performing (compared to my Aura 2), that you need to wring out this last bit of performance? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
It won't have any perceivable effect on performance. In fact, having grayscale content might make it *worse*, because nickel is not running in grayscale (because Qt).
The only interest in carefully grayscaled content is when you care about accuracy and/or file size. |
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
I want to greyscale every image not just for performamce but also for storage space
|
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
if I can't even enjoy the color, if I can save storage space, If I can speed page-loads/turns? |
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And as @NiLuJe, Kobo actually renders in colour. I assume it is writing to the screen that does the gray-scaling. I suspect you won't get any noticeable performance benefit. I would say that space is the only advantage and you can test this manually to see if it is actually worthwhile following it up. Try what @theducks suggested. Also, this question has come up before. But, no-one has developed a tool to do it. I suspect that means that people who have tried it have found it isn't worth it. Or, they decided that the colour was important and used a tablet for books with lots of pictures. Which is what I would do, |
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 763
Karma: 10000000
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
If these are not CBZ/CBR files then converting to greyscale probably isn't going to help much overall. If these are CBZ/CBR files then transcoding may be beneficial. Or it might not. There's very much an "it depends" involved. But for the most part I get good results with ImageMagick:
Code:
KX=1440; KY=1920 GREY="-type Grayscale -level 0%,100%,0.6" BLUR="-gaussian-blur 0.05" TRIM="-trim +repage" FUZZ="-fuzz 1%" mogrify -verbose -strip -format jpg -quality 85% ${FUZZ} ${TRIM} ${BLUR} -filter Lanczos -resize ${KX}x${KY} ${GREY} * Last edited by ratinox; 10-15-2019 at 02:12 PM. |
![]() |
![]() |
![]() |
#11 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 763
Karma: 10000000
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
|
Quote:
Converting from 16/24/32-bit deep color to 8-bit greyscale may save some space but the reason I do it is to minimize artifacts when the display hardware does it on the fly. My commands include some blur and fuzz in order to reduce visible artifacts and take advantage of efficiencies in the JPEG libraries. Using jpegtran to optimize JPEG files or optipng to optimize PNG files may help reduce image file sizes by a few percent if they haven't already been optimized. Performance gains can be had by scaling to the native resolution of the display so that the renderer doesn't have to spend procesor cycles (and battery) scaling on the fly. This can either increase or reduce image file sizes depending on the source resolutions and depths. |
|
![]() |
![]() |
![]() |
#12 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Technically, Nickel runs @ 32bpp, so it's happily blitting to the framebuffer in BGRA, and leaving the EPDC/PxP to do the grayscaling, followed by a decimating quantization pass (unless you're on a Mk. 7, in which case it does an ordered dithering pass).
Which means feeding a grayscale image to Qt nets you an implicit conversion to RGB32 behind the scenes ![]() Note that, as was mentioned earlier, there are probably a number of circumstances where you won't be able to avoid scaling entirely (even if it's for something stupid like a 12 pixels margin or something). Still, you can't go wrong with the native screen's resolution, because at least you can be sure that nothing will ever ask for *larger* than that ![]() That said, we've pretty much all agreed on the fact that both performance and experience in an image-heavy CB(Z|R)/PDF/(K)ePub was going to be fantastically awful in Nickel anyway, so, meh. Last edited by NiLuJe; 10-15-2019 at 04:35 PM. |
![]() |
![]() |
![]() |
#13 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
Quote:
![]() Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forma How many shades of grayscale does the Forma have? | droopy | Kobo Reader | 11 | 10-15-2019 12:31 AM |
Forma Can I safely delete the ".kobo-images" folder? It's taking 500MB of space. | droopy | Kobo Reader | 36 | 10-14-2019 03:51 AM |
Kobo Wi-Fi Page Turn Speed | SonDan1 | Kobo Reader | 6 | 04-11-2012 10:46 PM |
Images to grayscale | madeinlisboa | Conversion | 22 | 11-04-2011 08:56 AM |
Cybook is 4 grayscale vs. PRS-505 is 8 grayscale | JoeC | Bookeen | 4 | 11-06-2007 10:25 AM |