Quote:
Originally Posted by slowsmile
* The plugin will now give a warning if there is a cover image file in the epub. There should be no cover image on upload to KDP as per the Kindle Guidelines.
|
There's a typo in the plugin description and the cover page warning. KindleGen doesn't support Cover html pages, but it does of course support embedded cover images. You might want to change the wording of the message.
Quote:
Originally Posted by slowsmile
@jhowell...Unfortunately the python Pillow module does not appear to be able to determine the resolution(pixels per inch) of an image, so I'm afraid there's no way that I can check ebook image resolution with this plugin.
|
Pillow supports dpi queries. Here's a snippet:
Code:
imgdata = bk.readfile(cover_id)
img = Image.open(BytesIO(imgdata)).convert('L')
xdpi, ydpi = img.info['dpi']
if (int(xdpi) or int(ydpi)) < 300:
print('dpi is less than 300.')