Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2009, 02:19 PM   #1
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
Problems with pictures in Mobi Files

Right now I have a problem with pictures in ebooks on my Bebook:

I scanned 2 books and used an OCR software. In the end, I saved them both as htm files with a few jpg pictures. Some of the jpg files have been bigger then 800x600 (the screen resolution of my Bebook is 800x600) others have been resized to something like 800x500 or 700x600, depending on the original size.

After that, I converted the htm files to mobi files, with the free software "Calibre". Also I told Calibre to include a cover image.Now, if I look at the preview in Calibre, the pictures are there - if I put them on my Bebook, they are missing. However, the cover image is working fine.

As an example: On the top half of the page, there is text, the lower half is empty. That is ok, since the jpeg file is larger then remaining free part. But when I turn a page follow, there is no picture. Instead, the text just continues.

I use the normal img src="name.jpg" command. Can anyone tell me what I am doing wrong ?
NASCARaddicted is offline   Reply With Quote
Old 06-15-2009, 02:28 PM   #2
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
There is an upper limit for images in Mobipocket files. It looks like you crossed it.

P.S. Calibre doesn't use Mobipocket's code, but Bebook does. That's why it works in one but not the other.
Nate the great is offline   Reply With Quote
Advert
Old 06-15-2009, 02:52 PM   #3
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nate the great View Post
There is an upper limit for images in Mobipocket files. It looks like you crossed it.
It has not been confirmed that any E-ink-reader care about the image size (in bytes) limitation. So it would be interesting to confirm if this is the issue or not. mobi2mobi in MobiPerl can be used to rescale the images to test this.
tompe is offline   Reply With Quote
Old 06-15-2009, 02:55 PM   #4
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by tompe View Post
It has not been confirmed that any E-ink-reader care about the image size (in bytes) limitation. So it would be interesting to confirm if this is the issue or not. mobi2mobi in MobiPerl can be used to rescale the images to test this.
Yes it has been confirmed. This has come up before, as related to the K2. In that instance the files were quite large (I think 1400x2400).
Nate the great is offline   Reply With Quote
Old 06-15-2009, 02:58 PM   #5
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nate the great View Post
Yes it has been confirmed. This has come up before, as related to the K2. In that instance the files were quite large (I think 1400x2400).
Are you talking image size in bytes here or something else. Have somebody collected this information somewhere? When people wanted me to allow larger images (in bytes) in MobiPerl they claimed that newer readers did not have any limitation (of course it has some limitation but 1400x2400 seems pretty small to be such a limitation).
tompe is offline   Reply With Quote
Advert
Old 06-15-2009, 03:03 PM   #6
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by tompe View Post
Are you talking image size in bytes here or something else. Have somebody collected this information somewhere? When people wanted me to allow larger images (in bytes) in MobiPerl they claimed that newer readers did not have any limitation (of course it has some limitation but 1400x2400 seems pretty small to be such a limitation).
According to Mobipocket, the upper limit is 63KB.
http://www.mobipocket.com/dev/articl...images.htm#img
Nate the great is offline   Reply With Quote
Old 06-15-2009, 03:18 PM   #7
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nate the great View Post
According to Mobipocket, the upper limit is 63KB.
http://www.mobipocket.com/dev/articl...images.htm#img
Yes, I know. But that restriction only seems to be important on old Palm devices. So I recently let me be persuaded not to enforce that limit in MobiPerl. But if there in practice are some other limit I would very much want to know what they are.
tompe is offline   Reply With Quote
Old 06-15-2009, 03:38 PM   #8
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by tompe View Post
Yes, I know. But that restriction only seems to be important on old Palm devices. So I recently let me be persuaded not to enforce that limit in MobiPerl. But if there in practice are some other limit I would very much want to know what they are.
Let's settle this, then. Make an ebook with MobiPerl that breaks the image size limit. I'll test it on my devices.

SO far as I know, the image size limit applies to MobiDesktop as well.
Nate the great is offline   Reply With Quote
Old 06-15-2009, 03:52 PM   #9
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nate the great View Post
Let's settle this, then. Make an ebook with MobiPerl that breaks the image size limit. I'll test it on my devices.

SO far as I know, the image size limit applies to MobiDesktop as well.
Well, here is a file were one image is 217520 bytes.
Attached Files
File Type: mobi Alice_In_Wonderland.mobi (644.5 KB, 432 views)
tompe is offline   Reply With Quote
Old 06-15-2009, 03:56 PM   #10
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Where is the first big image?
Nate the great is offline   Reply With Quote
Old 06-15-2009, 04:13 PM   #11
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by Nate the great View Post
Where is the first big image?
Nevermind. The same images all show up in both Calibre and MobiDesktop. But i can't see them on my Airpanel (which runs MobiReader 4.8).
Nate the great is offline   Reply With Quote
Old 06-15-2009, 04:13 PM   #12
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nate the great View Post
Where is the first big image?
It is the cover image (which is included twice so it is shown also in readers that do not support cover images).

Here is the same file but with a 2M cover image and larger format (6000x8000 jpg image).
Attached Files
File Type: mobi Alice_In_Wonderland.mobi (2.21 MB, 394 views)
tompe is offline   Reply With Quote
Old 06-15-2009, 04:16 PM   #13
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Quote:
Originally Posted by tompe View Post
It is the cover image (which is included twice so it is shown also in readers that do not support cover images).

Here is the same file but with a 2M cover image and larger format (6000x8000 jpg image).
I can see the cover. I just can't see any of the later images. I wonder why?
Nate the great is offline   Reply With Quote
Old 06-16-2009, 05:29 AM   #14
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
First, I do see the images, but not the cover on my reader: Mobipocket Reader v.5.3 - Build 582.

But:

I took the mobi file from your second post and parsed it through my scripts. I can see the images. (after getting the HTML using mobi2oeb)

I did have to make some changes, as I make sure my source files are epub compliant:

1. changed the order of the <guide> and <spine> in the .opf file
2. added the ncx file to the manifest in the .opf file
3. added the <?xml version?>, doctype and html xmlns to the HTML file

step 2 required me to make some minor changes to the file:
4. <font> isn't allowed, <a name> isn't allowed, <center> isn't allowed. I replaced those with a <span class="font-size">, <a id> and <div class="center">.
5. an image requires the "alt" attribute, so I added an alt="image" to all images
6. I had to add an extra <div> in the table of contents, as the <a> and <br/>'s aren't valid in a blockquote (apparently)
7. there are two loose <a> elements, I had to surround them in a <div> also.

My script makes an epub file from the sources, and then uses mobigen to create a mobi file.

The result does show all images and the cover.

----

The changes I made to the HTML file and the OPF file won't explain why they do show for me. But, the way I transform them does. I've no idea how to use Calibre to make mobi files, otherwise I'd use those sources and try to see what Calibre does...
Sweetpea is offline   Reply With Quote
Old 06-16-2009, 08:57 AM   #15
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
mobigen will scale the images.

I must remember to test the files on my Cybook also. I just tested them with FBreader and they worked there but FBReader was not so good in handling the large image.
tompe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
converting to MOBI from PDF deletes Pictures jomaweb Conversion 3 07-28-2011 11:12 PM
Problems with pictures and text on same page kiwiinUS Calibre 0 09-13-2010 05:47 PM
ePub to MOBI with Pictures Bull06 Calibre 12 07-09-2010 11:00 AM
Cover pictures after convertion from ePub to Mobi paulpeer Calibre 8 03-23-2010 09:23 AM
FBreader and mobi pictures romanas iRex 2 11-02-2008 11:41 AM


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


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