View Full Version : Mobipocket File Format


pdurrant
07-31-2008, 03:05 PM
I couldn't find any summary of the Mobipocket file format anywhere. Mobipocket don't document it, and although there's abviously been some reverse engineering to allow the MobiPerl tools and the various Python scripts, the code seems to be the documentation.

So - having spent some time with the various Perl and python scripts, and done a bit of googling on the PDB format, I've added some technical info to the wiki here, specifically to the PDB format page and the Mobipocket format page.

Hopefully others will contribute what they know, so we can build up a good description of the Mobipocket format, to help improve the tools.

Paul

nrapallo
07-31-2008, 03:12 PM
BTW, the link to that info is MOBI (Format section) ;)

Quite extensive information, thanks!

DMcCunney
07-31-2008, 07:45 PM
I couldn't find any summary of the Mobipocket file format anywhere. Mobipocket don't document it, and although there's abviously been some reverse engineering to allow the MobiPerl tools and the various Python scripts, the code seems to be the documentation.
Mobi actually does document it, but it takes a little digging on their site.
See http://www.mobipocket.com/dev/article.asp?BaseFolder=prcgen&File=mobiformat.htm
______
Dennis

tompe
07-31-2008, 09:38 PM
Mobi actually does document it, but it takes a little digging on their site.
See http://www.mobipocket.com/dev/article.asp?BaseFolder=prcgen&File=mobiformat.htm
______
Dennis

I do not consider that to be a documentation of the format since it does not specify record 0.

For MobiPerl the intention was that the code together with the comments in the code should be te documentation of my current understanding of the format (mostly the MobiPocket headers).

red_dragon
08-01-2008, 03:36 AM
BTW, the link to that info is MOBI (Format section) ;)

Quite extensive information, thanks!

This one is really helpfull! When I am back from vacation I will compare it with the information that I have found. Probably there will be nothing to add but one never knows... :)

If someone prefers C++ code over Perl or Python feel free to contact me (but expect a 2 weeks delay).

Ortep
08-01-2008, 03:45 AM
I read the wike and it looks great. At the end I saw:


Please also notice that there is a 63KB internal limitation for images (this is a restriction of the Mobipocket .PRC format). GIFs have to be smaller than 63KB. You can use GIF optimization programs such as Ulead Smart Saver to get GIFs smaller than 63KB. (If images are bigger than 63KB, they are automatically resized to fit in the limit by MobiGEN but you might not like the result). Jpeg images will use a lower Quality setting to get the image size down without reducing the pixel size.


Perhaps it is nice to no for some people that the very popular fileviewer Irfanview is capable of saving jpg's with a fixed size. I use it all the time when I want to create books

DMcCunney
08-01-2008, 10:10 AM
Perhaps it is nice to no for some people that the very popular fileviewer Irfanview is capable of saving jpg's with a fixed size. I use it all the time when I want to create books
Irfanview is splendid, and I have it here. Another option is a free, open source application called Paint.net. It's intended to replace the Microsoft Photo Editor application offered as part of Office. It can be had here (http://www.getpaint.net). (It requires the .NET 2.0 runtime, available from Windows Update.)
______
Dennis