|
|
#16 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
Quote:
Unfortunately, with recent firmwares, the cover generation is done on the fly, rather than all at once when books are added. This means that I will either need to either find a way for each publisher's ebooks to set the margins for the cover to 0, so I can adjust the margins as desired when reading and this won't affect the generation of new covers. Or find a way, again for each publisher, to hard-code the margins of each book, except the cover, so I can keep the kobo margin settings at 0 (this may be simpler, but mean's I can't change the margins when reading, which is a pain). |
|
|
|
|
|
|
#17 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 4388
Join Date: Oct 2012
Device: Kobo Touch, Kobo Aura H20 2nd edition
|
Quote:
)
|
|
|
|
|
|
|
#18 | |
|
***
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 2716
Join Date: Oct 2012
Device: Sony PRST-2, Kobo touch
|
Quote:
Code:
<head>
...
<style type="text/css">
/*<![CDATA[*/
@page {padding: 0pt; margin: 0pt;}
body.nb {padding: 0pt; margin: 0pt;}
/*]]>*/
</style>
</head>
<body class="nb">
...
Code:
@page {
margin-top: 5px;
margin-bottom: 5px;
}
body {
padding-left: 20px;
padding-right: 20px;
}
Last edited by RG1; 10-28-2012 at 06:22 PM. |
|
|
|
|
|
|
#19 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
I just checked the impact of this by loading some books onto the kobo, opening the library and browsing a couple of pages with the margins set to 0. The covers generated properly. Once I opened a book and set the margins to a non-0 amount, any new covers generated had margins added, and the cover image was squeezed into the space between the margins - ruining the aspect ratio.
|
|
|
|
|
|
#20 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
Quote:
|
|
|
|
|
|
|
#21 |
|
***
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 2716
Join Date: Oct 2012
Device: Sony PRST-2, Kobo touch
|
You can add this code to your cover.xml or cover.html:
Code:
<style type="text/css">
/*<![CDATA[*/
@page {padding: 0pt; margin: 0pt;}
body.nb {padding: 0pt; margin: 0pt;}
/*]]>*/
</style>
If there is a line starting with <link href="../Styles/ in the head (before </head>) then delete the complete line. That's it. An easier way is to copy the cover.xml from the file I attached earlier in the thread and put it in the other books. Make shure that the cover image is named cover.png and resolution is 800x600. Last edited by RG1; 10-28-2012 at 06:56 PM. |
|
|
|
|
|
#23 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
|
|
|
|
|
#24 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
Quote:
|
|
|
|
|
|
|
#25 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
Quote:
|
|
|
|
|
|
|
#26 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 349476
Join Date: Jul 2012
Device: Kobo touch
|
Quote:
|
|
|
|
|
|
|
#27 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
Quote:
I have 500 books on my reader and all have correct Covers. Sorry about the Linux thing, I coded that for myself at the beginning with .NET and have done some very limited testing in Linux. But I though that most distro already included Mono. Maybe A VM would be better? |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cover image isn't displaying as cover image | Eugene88 | Sigil | 3 | 08-15-2012 05:05 PM |
| cover image | lionelsnod | Feedback | 0 | 02-10-2012 08:51 AM |
| cover image | jjh76 | Calibre | 3 | 12-30-2011 07:29 AM |
| Cover Image | Todd Young | Writers' Corner | 3 | 09-20-2011 06:16 PM |
| Cover Image | Padr49904 | Sigil | 7 | 05-07-2011 07:59 PM |