View Single Post
Old 07-18-2020, 06:44 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,559
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Turtle91 View Post
Do you know of a different technique to prevent blowing out small images - I'd be happy to use something that works better??
Not without querying the device resolution, something that can probably be done in ePub 3 with JavaScript, but not in ePub 2. I'm not saying your code/solution is wrong, only that the description can be misleading.

By the way, I believe that a "px" is, in compliant devices, guaranteed to be an integer number of actual pixels, so at least the image should look fine. Still, you need to know the pixel size of the image.
Jellby is offline   Reply With Quote