![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
Image Lost During ODT > ePub Conversion
I'm trying to debug a really annoying problem that happens consistently during my current ePub generation effort. I'm using OpenOffice 3.4.0 under OS X 10.7.4 and the latest calibre (0.8.64).
I create the document in Open Office and save it in .odt format I open calibre, add the .odt to my library, and convert to ePub I sync the result over to my iPad 2 running 5.1.1 The cover page works fine, the TOC works fine, the text all works fine, and the 'regular' photos inserted into the .odt as .jpg images are all OK - the problem is one diagram, also in .jpg format, that simply refuses to make the translation into the ePub file. These results are consistent whether I'm checking the file with the calibre viewer on the Mac or in iBooks on the iPad. This diagram is inserted from the same directory as the photos, so it doesn't seem like some kind of path problem but who knows. It appears to healthy and happy when you view the .odt in OpenOffice. The photos are quite large and the problematic graphic relatively quite small both in terms of pixel dimensions and file size. I can add a test photo (or photos) in the exact same place in the document with no problems. Any ideas what might be different about this particular .jpg that might make it fail to convert? Thanks in advance for any ideas ... or solutions! |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Another option open the jpg in a image program such as Paint Shop Pro or Paint.net and save it as a png and use that file instead and see what happens. I believe there was a, for lack of a less ignorant word, rogue spec jpg at one point that just does not play well with some programs. Last edited by DoctorOhh; 08-15-2012 at 07:01 AM. |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
|
![]() |
![]() |
![]() |
#5 | ||
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
Quote:
Quote:
One other strange factoid - if I make this the only image in the doc and do NOT include a separate cover page the image is grabbed and used as the cover but doesn't appear in the text body. If I do include a separate cover the image doesn't appear at all. For what it's worth I sent the complete .odt to Kovid via an official bug report and he was able to successfully process it into an ePub. Very odd - obviously something's different somewhere!!! I'll report back once I've had a chance to re-work the JPG with PSP ... Thanks to both of you that responded and to Kovid for checking out the bug! |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
If there is a place in OpenOffice 3.4.0 that allows you to designate the cover, could this image have been set with that attribute?
For lack of a more elegant solution you could try duplicating the jpg and putting the two images one page apart and see what survives. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
Well, the problem persists no matter what .jpg I insert in my .odt source and no matter what I do re: cover page selections. I've basically just surrendered and now insert a sacrificial image on the first page of my document that I know will simply get lost in translation ...
|
![]() |
![]() |
![]() |
#8 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
Already done as stated above - Kovid was not able to replicate the problem even with my original .odt file. Obviously there's some difference in the environments.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Another idea...can you save the odt file as html. If so you could examine the raw html in a text editor to see how the rogue image coding <img> looks compared to the rest.
Also, if you can save odt as html you could try importing the html to calibre, which will convert it to a zip with all the images. Then do a zip-to-epub conversion. Do you get a better epub? |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just checking the obvious, you dont have the remove first image option checked, do you?
|
![]() |
![]() |
![]() |
#12 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Aug 2012
Device: iPad 2
|
Quote:
As part of this project I've had to do many many conversions of the same doc because of image-related problems (see my other post) and the behavior has been very consistent. I've verified that option is *not* checked each and every time. My "sacrificial" image is addressing the issue, though - what's really causing me a lot of work (and re-work) is the image size problem described in my other post. |
|
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
This setting can exist in many places:
Preferences is the place that is used For the First Ever Conversion (default) of that Book. Once the Book has been converted, the settings that were used, are stored with the books metadata(.db) Any reconversion, will use the saved settings unless you click/tick the clear/restore (use the now current Preferences) defaults So if you were just fixing Preferences, you would see no changes. If you changed the setting on the Conversion Screen.. Those override the saved (or current preferences) values for that book only AND those will be the New saved (book) values |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Création d'un script de conversion automatique sur Internet ODT-to-EPUB | nixSta | Software | 4 | 07-15-2011 03:09 AM |
Footnotes in odt->epub conversion | Bidibulle | Calibre | 4 | 01-18-2011 12:07 PM |
epub conversion - cover image | Nate the great | Calibre | 15 | 09-14-2009 05:15 PM |
Image and text- images lost in conversion | monkeywithscisso | Calibre | 3 | 01-14-2009 10:01 PM |