View Single Post
Old 06-10-2017, 01:32 AM   #68
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Doitsu View Post
Unfortunately, I can't help you with that, I believe that I arrived at these values after some trial and error with my PW2. IIRC, both values need to be identical to maintain the aspect ratio.
Recap: the thumbnails on the PW "grid view" fit in 1x1.5".

Your code was:
img.thumbnail((330, 330), Image.ANTIALIAS)
That produced images 330 px high.
For PW1/2 @ 220 ppi, that gave a thumb of 1.5" high; filling the slot. But for PW3, 300 ppi, 1.1", only 3/4 size.

So for PW 3, change to (450,450) and you get full-size thumbs.
Which I tried and it does work.
Maybe you can add a GUI setting for this.
Or default to 450, since it seems the Kindle will downscale if the thumb is too large.

Odd that all the Kindle screens are 4:3 ratio, but the thumbnails are 3:2. So unless you are incredibly fussy and redesign the thumb, one or the other will have whitespace around.

Last edited by AlanHK; 06-10-2017 at 01:38 AM.
AlanHK is offline   Reply With Quote