05-01-2011, 08:07 PM | #1 |
Junior Member
Posts: 4
Karma: 1738
Join Date: May 2011
Device: Nook Classic
|
Cover Image
I have been using Sigil for a while and was wondering about how to insert the cover image that will correctly fill the screen on my Nook Classic. When I tried to make the cover the size of the nook it adds a white page after the cover.
I have looked at other books and the cover's are full screen on the nook and in Sigil they are stretched over the entire section. Is there a way to add a picture that will auto detect the device and make it the correct size for the page? |
05-01-2011, 08:16 PM | #2 |
Junior Member
Posts: 4
Karma: 1738
Join Date: May 2011
Device: Nook Classic
|
Nvm, found the right coding, can someone delete this entire thread?
|
Advert | |
|
05-01-2011, 09:09 PM | #3 |
Well trained by Cats
Posts: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
05-02-2011, 05:26 AM | #4 |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
How about posting the code you used, so anyone who later has a similar problem can find a solutioun easier
|
05-02-2011, 02:36 PM | #5 |
Junior Member
Posts: 4
Karma: 1738
Join Date: May 2011
Device: Nook Classic
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 343 500" width="100%">
<image height="500" width="343" xlink:href="../Images/cover.jpeg"></image> The cover.jpeg needs to be changed to what the actually picture you are using is and this coding going right after <body>. I fight it easier just to copy this before the picture name and then add the </image> after the image name. The height and width need to be adjusted, besides just where it says the height and width the numbers need to be replaced after the viewBox="0 0. So if an image is 600x760 then after the 0 0 it needs to say 600 760 and the height needs to be set as 760 and the width as 600. So the new coding would look like: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 600 760" width="100%"> <image height="760" width="600" xlink:href="../Images/cover.jpeg"></image> Last edited by Padr49904; 05-02-2011 at 02:44 PM. Reason: figured the width and height out |
Advert | |
|
05-02-2011, 07:46 PM | #6 |
Connoisseur
Posts: 78
Karma: 1588
Join Date: Jan 2011
Location: New Zealand
Device: see signature
|
Thank you for posting the code. I have been using other code for my covers, but the results are not always great. "Improving cover pages" is on my "learn how to do" list, so will give your method a go
|
05-02-2011, 11:28 PM | #7 |
Junior Member
Posts: 4
Karma: 1738
Join Date: May 2011
Device: Nook Classic
|
Please be aware that the coding has only been tested on the Nook Classic I have. If there are any computer programs that can mimic other devices then please let me know so I can tweak the code if it needs to be done.
|
05-07-2011, 06:59 PM | #8 |
quantum mechanic
Posts: 705
Karma: 483827
Join Date: Aug 2010
Location: NorCal
Device: Nook1, Samsung Transform, Nook2
|
Thanks for the code! Just what I needed .
|
Tags |
cover size |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding cover image | miwie | Library Management | 9 | 03-04-2011 10:39 AM |
Cover image size | crutledge | Sigil | 3 | 08-02-2010 03:31 AM |
Cover Image Size | gr8npwrfl | Calibre | 0 | 12-21-2009 12:49 AM |
Cover Image Display | JoeD | OpenInkpot | 9 | 05-05-2009 12:42 AM |
Default cover image | rakshi | Calibre | 1 | 03-29-2009 10:21 PM |