View Single Post
Old 08-31-2018, 01:43 AM   #37
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slowsmile View Post
* 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 View Post
@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.')
Doitsu is offline   Reply With Quote