

Quote:
Originally Posted by jackie_w
In general, you can use .svg files in <img> tags. This should work for both epub and kepub on a Kobo but see Note below. It certainly works for .svg images used as scenebreak ornaments in the main body text.
However, as has already been said, kepubs do treat the cover as a special case, so you'd need to double-check.
Note: This is a reply to a question you didn't ask but may be relevant ... I wouldn't recommend using .svg image files if you intend to read the same epub on a wide variety of Android epub reading apps. Only a few of them support .svg image files.
|
Well it
sort of worked with an img tag using the .svg as its src. The text was in the right place but the box I'd put around it was shrunk down a bunch and was on the left.
So minding your cautionary recommendation about svg image files and android I decided to try another idea I had which is to make the cover image a .gif file. Curiously the grayscale gif was larger than the rgb one and since I'm on this holy grail quest to make the smallest possible epub 3 files I made it an rgb gif. Gifs are better than jpeg when the image is solid colors and I did try also saving it as jpeg; 6K gif, 22K jpeg. The .gif works. I now need to figure out how to position it correctly.
For size, the .svg was a great idea while it lasted; 343 bytes, the .gif is 5,461 bytes.