View Single Post
Old 08-01-2017, 11:28 PM   #44
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by DiapDealer View Post
Regardless of how you specify your image sizes in your KindleBook source epub/xhtml, they will be reduced to height="xxx" width="xxx" in the old-style mobi (xxx being pixels).

Code:
<p height="0pt" width="0pt" align="center"><img src="Images/image00093.jpeg" align="baseline" height="600" width="400"></img></p>
K7 only understands pixel image dimensions. I have no idea if Kindlegen is capable of conversing source percentages to K7 pixels nowadays. I highly doubt it though.
No, it doesn't, and I wish it would. Believe me, we've suffered with images and KF7. You can't just let them size with percentages, because on the KF7 devices, they'll blow up. ALSO, unless it's been fixed, the Voyage has/had a bug--if you had an image >50% of the size of the screen, but less than 100%, it will blow up to 100%. (That's just...an aside.)

When you code images for "Kindle," you have to set the size for KF8 in percentages, and the size for the KF7 in pixels--period. It sucks, but there it is. I WISH that KF7 would use %, because then we could either just use the same damn CSS, or some type of media-query fallback--but we CAN'T.


Hitch
Hitch is offline   Reply With Quote