Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2013, 10:17 PM   #1
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
Posts: 5
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?
btse1 is offline   Reply With Quote
Old 12-06-2013, 10:22 PM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
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.
mrmikel is offline   Reply With Quote
 
Advertisement
Old 12-06-2013, 10:29 PM   #3
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
Posts: 5
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.
btse1 is offline   Reply With Quote
Old 12-07-2013, 12:47 AM   #4
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 549
Karma: 94420
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>
and as mrmikel said, be sure that the image "decembercover2.jpg has the semantic "cover image" selected.
st_albert is offline   Reply With Quote
Old 12-07-2013, 01:19 AM   #5
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
Posts: 5
Karma: 10
Join Date: Nov 2013
Location: The Great Pacific Northwest
Device: kindle fire
Maybe this will do it. Thanks for the help!
btse1 is offline   Reply With Quote
Old 12-07-2013, 11:25 AM   #6
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,034
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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.
theducks is offline   Reply With Quote
Old 12-07-2013, 10:35 PM   #7
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 7,303
Karma: 12456559
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by theducks View Post
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.
As well as validating as the totally correct way to add a cover and performing the nuclear option on whatever shouldn't've been there before...

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.
eschwartz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Cover versus Replacing a cover ParadiseLost Calibre 5 05-17-2013 08:42 PM
K3 [question] replacing screens kivsha Kindle Developer's Corner 7 12-15-2012 05:03 AM
Cover image isn't displaying as cover image Eugene88 Sigil 3 08-15-2012 05:05 PM
Sigil Cover image Question ralphiedee Sigil 9 05-30-2012 11:54 AM
Question about doing some searching and replacing in Word texasnightowl Workshop 6 09-11-2008 10:20 AM


All times are GMT -4. The time now is 08:26 AM.


MobileRead.com is a privately owned, operated and funded community.