![]() |
#76 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
This did not work with the Windows .exe versions (I did not try the Perl scripts). The html2mobi stage seem to work (e.g. the BMP images look ok), but the images in the final MOBI file are corrupted. They are mostly white. When I re-extract from the MOBI using mobi2html the JPG images are about ~4KB instead of ~55KB for the original BMP files.
|
![]() |
![]() |
![]() |
#77 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I suspect there is a binmode issue again. This is such an irritating difference between Unix and Windows. I assume I have to boot to Windows again... |
|
![]() |
![]() |
![]() |
#78 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2007
Device: E61
|
Hmm, I tried the windows program to convert a prc to mobi to change title name but it does not seem to work with Mobipocket reader from mobipocket.com. They claims it's corrupted.
When I try to open it with FBReader however, it seems ok but no "end of line" was carried over. Also, I'm trying to run mobiperl in Linux, what package do I need and how do I get them? Thanks. |
![]() |
![]() |
![]() |
#79 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Quote:
Quote:
If you do not find out which packages to install you can always do "perl -MCPAN -e shell" and the try to search for missing packages and install them. In principle if a file says "use Palm: ![]() ![]() |
|||
![]() |
![]() |
![]() |
#80 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Since the original BMP images were all <60KB, there was no need to convert them to JPG at all. In fact, if BMP or GIF images are small enough then leaving them "as is" is the best approach because a JPG always looses information. This is particularly true of line graphics. If an image is too big, then converting to JPG is probably the best approach in general.
|
![]() |
![]() |
![]() |
#81 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#82 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Hi Tommy,
Might be worthwhile to see how the latest book I've uploaded, "Hard Times", works with your tools. This one gave 5 warnings about records >64k from Mobigen, but seems to work fine on the Gen3. |
![]() |
![]() |
![]() |
#83 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Version 0.0.20
Version 0.0.20 is available which will be the last version this year
![]() http://www.ida.liu.se/~tompe/mobiper...0.0.20-win.rar http://www.ida.liu.se/~tompe/mobiper...erl-0.0.20.tar Changes in 0.0.20:
For some reason I do not understand the BMP reading do not work in Windows so if you have a BMP file greater that 61000 bytes or with a width greater than 480 then it will not work under Windows. It will work in Linux. |
![]() |
![]() |
![]() |
#84 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I will add resizing image functionality to mobi2mobi (a flag --fiximagesizes). |
|
![]() |
![]() |
![]() |
#85 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Perhaps Mobi feel that these days the number of people running on Palm architecture is rather small, and that it's OK to allow better quality pictures on devices which do support it. It is, I suspect, the 64k segmented memory architecture of the Palm which is the issue. That restriction doesn't apply to any other platform - Gen3, Windows, Pocket PC, etc; all those devices have "flat" memory.
|
![]() |
![]() |
![]() |
#86 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#87 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Trouble is, there's no easy way to find out which specific pictures are the problem. When you have 40+ pictures in a book it would be a nightmare to reduce the size of each one in turn and see if the warning goes away.
It's NOT the size of the original source image that's the problem - in all my Dickens books which have pictures, the "original" of the picture JPEG is typically 100-130kb in size. In the vast majority of cases MobiGen obviously does something to the pictures to make them work OK, but it a small minority of cases it gives you a "record >64k" warning, and tells you that it won't work on a Palm device as a consequence. |
![]() |
![]() |
![]() |
#88 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
In the next version of mobi2mobi it will print out warnings for the images. For your Dicken's book it looks like:
Code:
FIRST IMG Record 168 WARNING: Record 174 - Image data size might be to large: 63708 ERROR: Record 176 - Image data size definitely to large: 71488 WARNING: Record 177 - Image data size might be to large: 65324 ERROR: Record 178 - Image data size definitely to large: 72376 WARNING: Record 179 - Image data size might be to large: 64440 ERROR: Record 183 - Image data size definitely to large: 72632 ERROR: Record 184 - Image data size definitely to large: 68676 WARNING: Record 188 - Image data size might be to large: 63136 |
![]() |
![]() |
![]() |
#89 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That's very useful, thanks. Would it be possible to add an "autofix" option to your "mobi2mobi" tool to fix the problem automatically? That would be an easy solution for people who do want to read on Palm devices. Other Mobi devices don't seem to have the 64k restriction.
Looks like a bug in MobiGen - it's obviously resizing the images but not getting the resize quite right in these particular cases. |
![]() |
![]() |
![]() |
#90 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
mobi2mobi, mobils |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |