View Full Version : Am I using Mobipocket Creator correctly?


GatorDeb
10-25-2008, 02:10 PM
When you have an HTML file with a cover and other images, are you supposed to set it up like this?

Cover Image
HTML file
Rest of images


?

Are you actually supposed to put the images there yourself or it imports them automatically for you because of the links in the HTML file as long as they are in the same folder? The cover itself has to be put in manually right?

Thanks! :)

pdurrant
10-25-2008, 03:15 PM
You don't need to explicitly add images referenced in the HTML -- Mobipocket Creator will add them in by itself, so long as the links resolve correctly (i.e. point to the image file they should)

The cover image doesn't have to be referenced from the HTML, but should be set up using the Cover Image tab.

If you're unsure, try things and see how the result comes out.

When you have an HTML file with a cover and other images, are you supposed to set it up like this?

Cover Image
HTML file
Rest of images


?

Are you actually supposed to put the images there yourself or it imports them automatically for you because of the links in the HTML file as long as they are in the same folder? The cover itself has to be put in manually right?

Thanks! :)

RWood
10-25-2008, 03:31 PM
If the HTML references an image that is on the Internet and your machine is connected to the Internet, will it resolve correctly or must the images be local?

GatorDeb
10-25-2008, 04:24 PM
I noticed the cover I have to add manually, but since I don't know where the images are in the books, it's hard to tell that it's doing it correctly.

So yes to cover images, no to everything. Thanks! :)

HarryT
10-27-2008, 11:30 AM
If the HTML references an image that is on the Internet and your machine is connected to the Internet, will it resolve correctly or must the images be local?

Image references must be local.

BSquared18
05-13-2011, 01:38 PM
"You don't need to explicitly add images referenced in the HTML -- Mobipocket Creator will add them in by itself, so long as the links resolve correctly (i.e. point to the image file they should)"

I have tried to do this but without success. The .gif files are in the same folder as the html file that references them. So, I don't have an address for each image. Do I need one? If so, what would that address look like?

Bill

HarryT
05-13-2011, 01:41 PM
What do the image links in your HTML file look like?

BSquared18
05-13-2011, 01:55 PM
For example:

<img src="night_hunt_kb.gif" />

<mbp: pagebreak />

<img src="free_kittens_kb.gif" />

<mbp: pagebreak />

(I added a space between the : and p in the pagebreak tags to avoid getting smilies.)

Bill

HarryT
05-13-2011, 02:13 PM
In that case, you should simply have to place the image files in the same folder as the HTML file that references them, and all should be well.

Are you getting any build errors from Mobi Creator?

BSquared18
05-13-2011, 02:35 PM
That was my understanding. But when I do that and try to build the ebook in MPC, I get a warning message for each img file, saying the file could not be found.

I've read somewhere that sometimes having the folder too many layers in creates problems. Haven't tried shortening the string of folders.

Bill

Strether
05-13-2011, 05:27 PM
Harry T is certainly an authority on this subject, see his Mobipocket Creation Tutorial. However, I occasionally use the program in creating e-books that contain many images and maybe if I tell you what I'm doing, you can compare it to what is happening to you.

I format my books using Book Designer, which creates an HTML file with the images imbedded. After loading the HTML file into Mobipocket Creator, and providing the metadata, I then go to the original HTML file and copy each image from that into the folder with the book that Mobipocket Creator is creating.

If there's an easier way of doing the job, I don't know of it. If you have so many images that that sounds like an onerous job, maybe Harry will be able to help you tomorrow during his daytime.

Jim

BSquared18
05-15-2011, 01:07 PM
I never was successful with getting MPC to find the .gif images that are in the same folder as the html file. But I did find a solution I can live with that eliminates the repeated images.

As you know, when you build a book, MPC creates a folder to put the .prc and opc files into, along with the html file. Because during the build process it couldn't find the image files, none of them was in that folder (except, of course, the cover image, which I had imported through MPC).

So, instead of trying to drag and drop the files with MPC opened, I went to Windows Explorer and simply copied and pasted them from where they are stored into the same folder that the prc, etc. files are in. Then, still in Windows Explorer, I clicked on the opc file, which opened MPC, and I built the book again.

That seemed to do it. Everything appears to be working fine, and there are no extra images at the end of the book.

Hope this little exercise will help anyone having the same problem.

Bill

HarryT
05-15-2011, 02:13 PM
Yes, you have to copy the image files manually into the folder containing the HTML file that references them. That's what I said in post #9 above. Mobi Creator certainly won't copy them for you!

BSquared18
05-15-2011, 02:39 PM
Begging your pardon. I thought the images had to be in the same folder that I originally created, which also contained the html file; not in the folder that MPC creates during the build. I assumed MPC would go to that original folder and copy the image files into the new one. Not all that far-fetched of an assumption. Programs do that all the time.

At any rate, I solved the problem; that's the main thing. Chalk it up to a newbie misunderstanding, I guess.

Bill

HarryT
05-15-2011, 02:41 PM
An easy misunderstanding to make. Anyway, good to hear that it's now all working for you.

zoe0640
01-31-2012, 05:00 PM
Hi. I appreciate all the help on these fora. But my experience with images is different. I have a folder C:\Book. The html file is within this folder. Images are in a subfolder C:\Book\Book_files. When I open the html file in a browser the images are fine. In Mobipocket Creator, I import the html file. When I build the prc, I end up with a NEW folder, C:\Book\Book. The html, prc, and opf are in here. There is also a new subfolder, C:\Book\Book\Book_files. All the images have been copied into this folder. Again, the html file opens fine with all the images intact. The only build error refers to no cover image (which I have not imported yet). But when I open the prc in Kindle, there are no images in the eBook. Please help!!! I've been trying to fix this all night!

Thanks,
zoe

Strether
02-02-2012, 03:14 PM
I keep waiting for someone who's really knowledgeable to answer your question, and I guess they're all on vacation. I can only extrapolate from my own experience in using the program. Except I've never had to deal with a sub-folder before. If my book contains images, they're all in the same folder with the HTML document.

So, can you eliminate the sub-folder, and put everything in one folder? If you can, after you import the HTML and a new folder is created, you're going to have to manually copy all the images and paste them into the new folder that's just been created, before you proceed.

If you want to add a cover image, you should do that before you proceed, too, unless you plan on having Calibre do it instead.

Faced with your problem, I'd at least try the above, always assuming that you haven't done that already.

Jim