View Single Post
Old 09-02-2022, 09:08 PM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by enuddleyarbl View Post
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin"[...]
Try:

preserveAspectRatio="xMidYMid meet"

See if that fixes your Kobo rendering issue.

Quote:
Originally Posted by enuddleyarbl View Post
Oh oh. I haven't researched it properly yet. But, I just blindly grabbed some stuff out of a book I was editing [...]

Could you point me to somewhere talking about why width="100%" is badness? There's a lot of stuff in that css I grabbed that I haven't researched yet.
Are you trying to create a cover?

Or are you trying to do a "full-page image"... like a giant chart/graph?

If a cover:

Back in 2018, I showed why HTML "width=100%" and/or "height=100%" distorts especially when you turn your device landscape:

If you're trying to get a "full-paged image", it depends on the case and what you're trying to accomplish.

See a lot of my discussion of what to look out for in:

- - - -

If you want more info on SVGs specifically...

RbnJrg has written a lot about SVGs + SVG Wrappers:

or you can type this in your favorite search engine to find even more topics/examples:

Code:
SVG RbnJrg site:mobileread.com
SVG Tex2002ans site:mobileread.com
But let it be known: Amazon devices don't like SVG.

So if you're going the SVG route, this solution would be an EPUB-only thing.

Quote:
Originally Posted by philm View Post
Actually, having "ebook3.epub" AND a copy renamed "ebook3.kepub.epub" on the same device, Kobo didn't see the second as a "KOBO epub" but as a simple epub despite its name. Deleting the first one "forced" the device to see it as a KOBO epub.
Thanks for that info. I had a similarly odd thing back on my original Nook. When 2 books had the same UUID/metadata, the Nook wouldn't recognize the "new" file.

So sometimes I would have to:
  • Delete both files.
  • Reset device.
  • Plug back in device.
  • Transfer file/s back.

That would usually get the version I wanted working again.

Last edited by Tex2002ans; 09-02-2022 at 09:16 PM.
Tex2002ans is offline   Reply With Quote