View Single Post
Old 08-31-2012, 01:54 PM   #5
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by kovidgoyal View Post
Here's what it should look like:

image.type = 'GrayscaleType'
image.save(path, 'BMP3')

On my linux machine that produces an 8-bit bmp grayscale image
I've just tried your suggestion on my Windows PC. However, without the img.quantize(...) the bmps are produced as 24BPP, so I don't think this is going to work for everyone.

Just in case this may prompt any further ideas, the first Linux user had modified his own version of the plugin zip with
Code:
save_cover_data_to(img, dest)
os.system("/usr/bin/convert - colors 8 %s %s" % (dest, dest))
but it looks Linux-specific or maybe even specific to just his machine???
jackie_w is offline   Reply With Quote