View Single Post
Old 01-28-2023, 03:38 PM   #3
robertosaenz
Member
robertosaenz began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2022
Device: kindle 10th gen
Smile

Quote:
Originally Posted by Quoth View Post
Use px for smaller images and % for images that are in their own paragraph.
Works on old mobi, azw3, kfx and all epub.
em is for fonts, margins and padding. Usually 12pt is exactly 1em and pt works fine for fonts and mostly for margins and padding (some epub renderers seem to use 10pt = 1em for margins/indents, but respect 12pt -1 em for fonts)

Oddly PW3 can be a bit strange on images, but that should be OK there.
Kindle screens are 4:3 approximately and 6″ are 167 dpi or 300 dpi. The 9.7″ screens are 150 dpi and all larger than 6″ on Kindle are 300 dpi. Hence % may work best vs page size, but for smaller images big enough to easily read at 300 dpi, the absolute px size works.
Only one axis should be a %, if used and other set to auto. Enclose in a centred <p ..... </p> paragraph to centre.

Upload epub2 to Amazon KDP, not doc or docx.
Thank you for your answer, Quoth. About that, I have equations rendered as inline-block images, which I size to 1em in height, so they embed correctly in the paragraph.

The original size of these images is a little larger than the size indicated in the style sheet. What would happen to those images in the conversion from epub to kindle (in the case of old devices)? Would they stay as still images in their original size?
robertosaenz is offline   Reply With Quote