Thread: PNG in KF8 yet?
View Single Post
Old 01-18-2023, 08:40 PM   #144
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 robertosaenz View Post
Hello guys, I have one question, if I use SVG images (in an html file) for KF8/KFX devices only, they will remain reflowable after the amazon conversion? or they would be converted to JPG/GIF ?
I've done some tests by converting epub with Kindlegen, then Kindleunpack to see what was done.

KF8 supports SVG graphics. These pass through conversion unaltered, as far as I can tell. KF7 files though I think SVG are just omitted.

Look at the code in some commercial books and they use media queries to provide alternates like "* * *" as an ornamental divider for KF7, and an SVG graphic for KF8.

SVG go through.
PNG are converted to sometimes GIF, sometimes JPEG. Usually larger and lower quality.
So I always convert PNG to those formats myself and optimise them, as GIF and JPEG are unchanged (except perhaps huge files might be downsampled). BW diagrams I reduce the colourspace to 4 colours, get a file much smaller than a similar looking JPEG.

Last edited by AlanHK; 01-18-2023 at 08:54 PM.
AlanHK is offline   Reply With Quote