![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
When you unpack a file with clit you get the image files in the manifest. If you run MobiPocket Creator on that opf file do you really get two images? |
|
![]() |
![]() |
![]() |
#17 | ||
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Quote:
Eg, suppose you have a book which, without pictures, is 1MB in size, and you add a picture to it (using an <IMG> link) which is 100kb in size. Ignoring picture resizing for the moment, if you just rebuild the book, you'll find that the size of the book increases to 1.1MB, as you'd expect. If, however, you add the picture to the "Publication Files" page and then re-build the book, you'll find that it's now 1.2MB in size - the picture is being included in the book TWICE - once by the <IMG> link and again by it being in the manifest. I don't know if this is a bug or not, but it's certainly the way that it works - try it and see! |
||
![]() |
![]() |
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
It seems to be lazy programming. The document will work as expected but be larger than it have to be. It might even be that for an opf document the correct behaviour is to ignore links to images that are not in the manifest. I will have to check this and make sure that lit2mobi and opf2mobi works in a reasonable way.
|
![]() |
![]() |
![]() |
#19 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The reason I noticed it myself is that when I first added pictures to some of my Dickens books, the resulting files were enormous, because some of those books have many MB of pictures, and at first I added all the pictures to the "Publication Files" page of Mobi Creator. When I realised that the pictures were being added twice, I removed the pictures from the manifest, and the books still displayed the pictures correctly, and were the size I expected them to be.
The way that is works is actually extremely convenient, because all my books consist of a single HTML file with linked pictures. That means that, provided I use the same name every time for my book file (I call it "book.html") I can simply re-use the same "opf" file every time - all I have to do is load it in Mobi Creator and change the meta-data for the new book! |
![]() |
![]() |
![]() |
#20 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 245
Karma: 718
Join Date: Dec 2007
Location: Vienna
Device: Pocketbook Pro 612, Bookeen Cybook Gen3
|
Can confirm what Harry states above. What I meant with my statement about adding the pictures manually was meant a little differently, though:
When I import an HTML file (from some directory) with linked pictures (in same directory or subfolder) I experienced the problem that the HTML was copied to the Creator working directory but not the pictures. That way when I built the book I would not see the pictures in Mobipocket Reader but instead get an error message that the picture could not be found (on the Cybook I would not get any errors, obviously, but when trying to display the picture it would either just omit the picture or crash. After some fiddling I found out that the HTML is parsed correctly and the references to the pictures were embedded correctly only the fact that the pictures were not present in the working directory when building the book prevented them from being there. This can be remedied by just copying the pictures manually into the Creator working directory of the current book (=where the HTML is located) after all the settings and editing in Creator are done and *before* pressing the "Build" button. Adding the files from within Creator (i.e. via "Add file") will copy the file to the working directory also but - as Harry mentioned - that would give you a double. I experienced this when importing an HTML which had the cover embedded as a picture at the top. After adding the cover image in Creator (via the menu) I had the cover image two times at the beginning of the book. I had to remove the <img src=...> tag from the HTML before importing to get rid of the double. |
![]() |
![]() |
![]() |
#21 | ||
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Quote:
As I say, what I do is to use standard names for as much as I can - I always call the book file "book.html" and the cover image "cover.jpg". That way I can just copy the opf file from a previous book, double click it to open it in Mobi Creator, and edit the metadata. I don't have to create it from scratch every time. |
||
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I think you should link it also otherwise for example FBReader will not show the cover image. On the other hand if you do not link it maybe you stimulate people to fix FBReader so it handles real MobiPocket files with respect to cover image.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error on import | Amalthia | Calibre | 8 | 03-23-2010 03:04 PM |
Can't import into Calibre 6.26 | Winter57 | Calibre | 8 | 12-05-2009 02:05 PM |
6.15 Crash during import | jquest | Calibre | 14 | 10-02-2009 03:17 AM |
Crashing on import | RichieJarvis | Calibre | 2 | 10-01-2009 12:16 AM |
Import USA--> EU | KoopaOne | Sony Reader | 37 | 05-15-2009 06:34 AM |