12-06-2013, 09:17 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2013
Location: The Great Pacific Northwest
Device: kindle fire
|
Question about replacing cover image
I had my manuscript professionally converted to epub. Now I need to replace the cover image to satisfy Smashwords cover requirements. I took a stab at it in Sigil, but even someone like me who knows only some basic html and only a tiny bit about css can see that the body code for the cover page is messed up. I'm hoping some kind soul here will correct it for me. This is the code at present:
<body style="margin: 0px; padding: 0px;"> <div style="width: 100%; height: 100%; margin: 0; padding: 0; text-align: center;"><img alt="Cover" src="../Images/decembercover2.jpg" /><img alt="cover" src="../Images/Decembercover2.jpg" /><img alt="Cover" id="CoverImage" src="../Images/CoverDesign.jpg" style="height: 100%; max-width: 100%; max-height: 100%; padding: 0; margin: 0;" /></div> </body> The new file it's supposed to be referencing is titled decembertitle2.jpg, but it is also referencing the previous title image, CoverDesign.jpg. This is bound to lead to disaster. Any guidance, please? |
12-06-2013, 09:22 PM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
How about just renaming the new file with the old file's name after deleting the old one from the epub?
If you use Sigil, you can right click on the name and select Add Semantics and make sure cover image is checked. |
Advert | |
|
12-06-2013, 09:29 PM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2013
Location: The Great Pacific Northwest
Device: kindle fire
|
I guess I should have done that, but now the code is what it is, and I'm not sure how to correct it.
|
12-06-2013, 11:47 PM | #4 |
Guru
Posts: 688
Karma: 150000
Join Date: Feb 2010
Device: none
|
Looks like you, or someone, tried to add the new cover image multiple times. Try this:
Code:
<body style="margin: 0px; padding: 0px;"> <div style="width: 100%; height: 100%; margin: 0; padding: 0; text-align: center;"> <img alt="Cover" src="../Images/decembercover2.jpg" /> </div> </body> |
12-07-2013, 12:19 AM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2013
Location: The Great Pacific Northwest
Device: kindle fire
|
Maybe this will do it. Thanks for the help!
|
Advert | |
|
12-07-2013, 10:25 AM | #6 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If the old cover image is on a separate page or currently does not HAVE a page. Note This procedure also replaces any existing cover (titlepage.xhtml) that was previously marked. 4-click cover update
Add the new Cover Image file (the normal way):Files: Add existing: <the image> f not already present. Then Tools:Add cover:<select from thumbnail list of images>: OK This method makes all the OPF entries for a cover and image files. |
12-07-2013, 09:35 PM | #7 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
It will not replace the titlepage.xhtml, though. It will replace whatever page is semantically marked as the cover, which may be the same thing. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding a Cover versus Replacing a cover | ParadiseLost | Calibre | 5 | 05-17-2013 07:42 PM |
[question] replacing screens | kivsha | Kindle Developer's Corner | 7 | 12-15-2012 04:03 AM |
Cover image isn't displaying as cover image | Eugene88 | Sigil | 3 | 08-15-2012 04:05 PM |
Sigil Cover image Question | ralphiedee | Sigil | 9 | 05-30-2012 10:54 AM |
Question about doing some searching and replacing in Word | texasnightowl | Workshop | 6 | 09-11-2008 09:20 AM |