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, 09:17 PM   #1
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
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?
btse1 is offline   Reply With Quote
Old 12-06-2013, 09: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,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.
mrmikel is offline   Reply With Quote
Advert
Old 12-06-2013, 09:29 PM   #3
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
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.
btse1 is offline   Reply With Quote
Old 12-06-2013, 11:47 PM   #4
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
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>
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, 12:19 AM   #5
btse1
Junior Member
btse1 began at the beginning.
 
btse1's Avatar
 
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!
btse1 is offline   Reply With Quote
Advert
Old 12-07-2013, 10:25 AM   #6
theducks
Well trained by Cats
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: 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.
theducks is offline   Reply With Quote
Old 12-07-2013, 09:35 PM   #7
eschwartz
Ex-Helpdesk Junkie
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: 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:
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 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


All times are GMT -4. The time now is 06:46 AM.


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