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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2010, 10:59 PM   #1
markjoseph
Member
markjoseph began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
Constrain Proportions of Cover Image?

Hi All,

I'm using calibre and sigil, mostly, and have nice epub, lit, and mobi versions of my book. Yay! One problem. My cover expands to fit the window and looks awful. Is there any code I can plug in (in the .opf, possibly?) to get the image to constrain to its proportions?

I think I saw this somewhere and can't remember what i did. Thank you. markjoseph www.thewordgang.com
markjoseph is offline   Reply With Quote
Old 12-31-2010, 04:58 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,309
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Do not use "width: 100%; height: 100%", use instead: "max-width: 100%; max-height: 100%"
Jellby is online now   Reply With Quote
 
Advertisement
Old 12-31-2010, 09:08 AM   #3
markjoseph
Member
markjoseph began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
Thanks Jelby, I must be doing something wrong. Tried it in both opf files a la:

<guide>
<reference href="cover.jpg" type="cover" title="Cover" max-width="100%" max-height="100%"/>
</guide>
</package>
and it didn't constrain the cover image. There's a "metadata.opf" as well as a "Word Gang, The - Mark McKenna.opf" file. I tried it in both of them and monkeyed around with the "" and :'s. Now what? markjoseph
markjoseph is offline   Reply With Quote
Old 12-31-2010, 10:00 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,309
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You cannot use CSS code in the OPF.

If "cover.jpg" is used in some XHTML file, in a <img> element, then there's where you have to add/modify the CSS (have a look at some tutorial on HTML/CSS to know what you are doing).

If "cover.jpg" is only referred in that guide element, then I don't think there's nothing you can do, and the reader is just buggy.
Jellby is online now   Reply With Quote
Old 12-31-2010, 11:37 AM   #5
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,225
Karma: 5940081
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Are you supposed to quot the 100% in a Guide?
You don't in a style sheet
theducks is online now   Reply With Quote
Old 12-31-2010, 12:11 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Under epub output in the calibre conversion settings check preserve aspect ratio
kovidgoyal is offline   Reply With Quote
Old 12-31-2010, 12:54 PM   #7
markjoseph
Member
markjoseph began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
Thanks Kovid, I knew i saw it somewhere. (Add another point to your karma.) I'll add some $$ points as soon as I receive some of the New Year's cheer I've been expecting. To fix the cover I'm going to try to go epub to epub. I think I did this before and it worked. Is that a good practice? markjoseph
markjoseph is offline   Reply With Quote
Old 12-31-2010, 01:54 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
that is the most reliable way to fix epub covers.
kovidgoyal is offline   Reply With Quote
Reply

Tags
constrain, cover, image, proportions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cover image size crutledge Sigil 3 08-02-2010 04:31 AM
Cover Image Compression. Ichi Calibre 3 01-04-2010 07:38 AM
Center a cover image Crusader Sigil 2 10-18-2009 09:51 AM
back Cover image itimpi Calibre 2 10-14-2009 01:03 PM
Cover Image Display JoeD OpenInkpot 9 05-05-2009 01:42 AM


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


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