View Single Post
Old 11-24-2022, 01:18 AM   #7771
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,165
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks.

New question: Line 16 of titlepage.xhtml has <preserveAspectRatio="none">. I'd like to change this to "meet". (It fixes the image on the cover page going kind of stretchy on Kobo.)

I think CustomOutput on Epub Cover would work, but the code on the page doesn't match up to what I see so I'm not entirely sure.

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>Cover</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
    <body>
        <div>
            <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                width="100%" height="100%" viewBox="0 0 400 640"
                preserveAspectRatio="none">
                <image width="400" height="640" xlink:href="../cover.jpg"/>
            </svg>
        </div>
    </body>
</html>
EDIT: The code on the page matches a book with a downloaded cover. Is this a GC thing?

Last edited by ownedbycats; 11-24-2022 at 01:34 AM.
ownedbycats is offline   Reply With Quote