Quote:
Originally Posted by NiLuJe
And just for kicks, since Calibre is also using ImageMagick, we can do it right  . [While I happen to like IM, note that it's not the only way, KCC happens to be doing it right w/ PIL  ]
Slightly more involved patch, which remaps to the eInk palette & dithers, and does the letterboxing for fullscreen covers (provided I didn't bork my maths, looks okay on initial testing). It also happens to be dramatically faster than using quantize, so that's neat.
(This affects Calibre's magick Python/C module, so you'd need to build Calibre yourself to test this).
|
Unfortunately I don't have a C environment to build that, so I can't test it. But, I had a quick look at the patch file. A lot of the changes seem to be line-end differences. Or am I misreading it?
I hadn't noticed the "minify_to" parameter before before. I'll have to check, but it should just be taking the size defined for the cover rather than the earlier calculation. And I think the full size cover needs to be handled as well. At the moment, if the aspect ratio is being kept, it isn't being resized, but it probably should.
There's something about the letterboxing I don't like. I'm not sure what it is, just that I don't like it. Hopefully I'll work out what when I play with it a little.