Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2011, 03:23 PM   #1
Mark Rehorst
was engr, now dentist
Mark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic something
 
Mark Rehorst's Avatar
 
Posts: 143
Karma: 18558
Join Date: Nov 2010
Location: Riverside, Ca
Device: Kindle DXG
Text and picture on same page

Is it possible to embed a picture in a text page in a Mobipocket ebook? I have been experimenting with Mobipocket Creator and it seems like the only way to have an image in an ebook is to insert the file between the html files that make up the text which puts the image on a separate page. I have tried embedding pictures in the html files and it doesn't seem to work. I believe I get some warnings from MC about links not resolving and the pictures end up at the end of the book on separate pages.

I've been using Kompozer as my html editor, in case that matters.

I made a test book consisting of a few pages of text, a few images, a table of contents, metadata, etc. and find it works and displays well in the Kindle DX OS. Chapters start on new pages, the TOC has its own page, but when I go to Duokan the TOC and text get reflowed(?) so that they all just run together- no new pages at new chapters, etc. Is there a tag I need to insert into the html files to get the book to behave better under Duokan?

Thanks!
MR
Mark Rehorst is offline   Reply With Quote
Old 01-30-2011, 03:33 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
All you need is an img tag, at its simplest:
Code:
<img src="images/00001.jpg" />
If the image is bigger than about half the size of the screen, the Kindle will magnify it to fill the screen. So you then get one image per page (per screen).

Your problem with MobiPocket Creator is that the image files are not imported automatically. You will need to add them yourself.
wallcraft is offline   Reply With Quote
Advert
Old 01-30-2011, 04:38 PM   #3
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
You may need to not sure relative links like the one shown above. Just use something like <img src="image001.jpg" />. Then, import the picture, as well as the HTML file in Mobipocket Creator. The link should then resolve. Sometimes Mobipocket Creator is weird about what directory it is looking in for files, so you might have to play with that.
susan_cassidy is offline   Reply With Quote
Old 01-30-2011, 05:02 PM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by susan_cassidy View Post
You may need to not sure relative links like the one shown above. Just use something like <img src="image001.jpg" />. Then, import the picture, as well as the HTML file in Mobipocket Creator. The link should then resolve. Sometimes Mobipocket Creator is weird about what directory it is looking in for files, so you might have to play with that.
No, you don't want to import the picture into Mobipocket Creator. If you do that, the picture will end up in the book TWICE - once where it's linked, and again, separately at the end of the book. Only your book's HTML files should be in the manifest (the list of files making up the book), NOT the pictures. Mobi Creator will find the pictures from their URLs when you build the book.
HarryT is offline   Reply With Quote
Old 01-30-2011, 08:09 PM   #5
Mark Rehorst
was engr, now dentist
Mark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic somethingMark Rehorst has a certain pleonastic something
 
Mark Rehorst's Avatar
 
Posts: 143
Karma: 18558
Join Date: Nov 2010
Location: Riverside, Ca
Device: Kindle DXG
Got it sorted out!

Thanks! It was a matter of putting the image files into the right directory.

MR
Mark Rehorst is offline   Reply With Quote
Advert
Reply

Tags
duokan, html, mobipocket creator


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
image on separate page without half-page text next Toxaris ePub 2 01-26-2011 04:32 AM
Text aligned on the bottom of the page? NASCARaddicted ePub 4 11-15-2010 02:14 PM
page numbers coming up over text soup ePub 11 08-07-2010 06:31 PM
Error text overwrites page text? troymc Sigil 6 07-07-2010 10:07 PM


All times are GMT -4. The time now is 11:40 PM.


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