Thread: PNG in KF8 yet?
View Single Post
Old 01-19-2023, 03:49 AM   #149
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,520
Karma: 108666825
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by AlanHK View Post
I often use the "InsertImageSVG" plugin to wrap an image in SVG. Using image tags, I can't find another way to have both maximum size and prevent distortion in all cases.

Anyway, if it works without error converted by Kindlegen and then loaded on a Kindle, I assume it will work when Amazon converts it.
For large images we use:

height: auto;
width: 90%; /* or whatever you want */

or if a portrait image
width: auto;
height: 90%; /* or whatever you want */

We have that inside a p or div with class something like this, which allows for a centred caption

{
display: block;
font-family: "Droid Sans", sans-serif;
font-weight: bold;
margin-bottom: 3pt;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-align: center;
text-indent: 0
}

We'd never use SVG on something also going to Amazon.
Quoth is offline   Reply With Quote