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 05-05-2019, 07:06 AM   #1
Vantage1
Junior Member
Vantage1 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Sony e-reader
Cover and pictures in e-pub

Hello

I'm rather new as a user of Calibre.

I wonder if anyone can help me with the following issues:

- how can one get pictures in a word doc, or ODT, rtf, converted in e-pub? I only got a map, and text of course, from a ODT in e-pub after converting, no pictures however;

- I downloaded a book cover and inserted/converted it in the e-pub as cover; but also the map in the epub was replaced by this cover; is this a bug? Or how can i prevent this?

Thanks for the help.
Vantage1 is offline   Reply With Quote
Old 05-05-2019, 11:37 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,762
Karma: 11819190
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
You need to save the image as a file, then add it to the epub. Finally you will need to create a link in your epub to the correct image file. I would recommend using the best resolution image you can find...usually downloading will be better than an embedded image.

In Word you can right click on the image and "Save As Picture". eg. "MyPic.jpg"

Then in your html:
Code:
<div><img alt="" src="../Images/MyPic.jpg" /></div>
/* make sure you have the correct path (inside the epub) to your image file */
or

Code:
<div><img alt="" src="../Images/cover.jpg" /></div>
<div><img alt="" src="../Images/map.jpg" /></div>
or even more advanced - you can wrap it in an SVG container for a full page image like a map or cover:

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Cover</title>
</head>

<body style="margin:0; padding:0; text-align:center; background-color:black">
  <h1 style="display:none" title="Cover"/>

  <div style="margin:0; padding:0">
    <svg 
           xmlns="http://www.w3.org/2000/svg"
           height="100%" width="100%"
           preserveAspectRatio="xMidYMid meet" version="1.1"
           viewBox="0 0 1066 1600"
           xmlns:xlink="http://www.w3.org/1999/xlink">
       <image width="1066" height="1600" xlink:href="../Images/cover.jpg"/>
    </svg>
  </div>
</body>
</html>
Turtle91 is offline   Reply With Quote
Advert
Old 05-05-2019, 12:28 PM   #3
Vantage1
Junior Member
Vantage1 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Sony e-reader
OK, thanks, Turtle91!
Vantage1 is offline   Reply With Quote
Old 05-05-2019, 02:10 PM   #4
lumpynose
Addict
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1111110
Join Date: Jul 2012
Device: eBookMan EBM-900
What are the advantages to wrapping the image in an SVG container?
lumpynose is offline   Reply With Quote
Old 05-05-2019, 02:31 PM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,762
Karma: 11819190
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
On most devices it allows for an image to expand to the full size of the display screen while maintaining it's aspect ratio. By setting the image size(WxH) and the viewbox(WxH) to the same numbers, you can then use other functions like height/width at 100% for max screen usage, or 50% for half the screen; preserveAspectRatio="xMidYMid meet" will center the image vertically and horizontally.

I like using it for images that take up a whole page, like maps and covers. If I want an inset image then I'll use a <div class="yadda"><img alt="" src="../Images/example.jpg" /></div> option. That way I can style it as desired for size, positioning, text wrapping, etc.
Turtle91 is offline   Reply With Quote
Advert
Old 05-05-2019, 02:36 PM   #6
lumpynose
Addict
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1111110
Join Date: Jul 2012
Device: eBookMan EBM-900
Thanks, I never would have guessed. I thought svg was just for drawing things. How did you learn this?
lumpynose is offline   Reply With Quote
Old 05-05-2019, 07:05 PM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,762
Karma: 11819190
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
I think it was here on MR. There have been several threads that talk about it.
Turtle91 is offline   Reply With Quote
Old 05-09-2019, 01:47 PM   #8
Vantage1
Junior Member
Vantage1 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2019
Device: Sony e-reader
I still wonder why the book cover also replaced a map in the book while converting to e-pub (my second question)
Vantage1 is offline   Reply With Quote
Old 05-09-2019, 01:52 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,762
Karma: 11819190
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
?? not sure. Perhaps there was something wrong with the file name or path of the map and Sigil reverted to the only good path it had???
Turtle91 is offline   Reply With Quote
Old 05-15-2019, 02:08 PM   #10
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: 23,089
Karma: 24021492
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by Vantage1 View Post
I still wonder why the book cover also replaced a map in the book while converting to e-pub (my second question)
A book cover has flags 1 for the page (must be separate) and 1 for the Image file
Sigils Add cover will do this for you
If something else replaced a cover (BTW page file or just the image on the page?)
When thing are not properly defind, you end up with either Duplicate (looking) covers (there can only be one 'cover', any other are just pages)
Many semantics (the flags i was talking about) can only be applied Once and many files can also only have ONE applied to it (another good reason foe splitting files)
theducks 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
EPUB Cover pictures poudigne Calibre 3 03-05-2014 12:57 PM
Book cover pictures. mahal48 Sigil 9 08-20-2013 11:18 AM
K4 Mac or PC K4PC cover Pictures Gardenman Amazon Kindle 0 03-06-2011 07:59 PM
PRS-300 Pictures: Pink 300 + Sony red cover + custom cover h0bbes Sony Reader 5 01-04-2010 12:41 PM
Cover pictures in Mobipocket crewpsu Reading and Management 5 03-07-2008 10:28 AM


All times are GMT -4. The time now is 02:35 AM.


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