Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3900

Image missing after conversion from docx to epub

$
0
0
I was converting from docx to epub. But for some reason one of the images (the publisher colophon) is disappearing after conversion.

I use the standard epub options, apart from adding the cover and metadata, and ticking epub “Preserve cover aspect ratio”.

In the Word docx it is a png file (I was told they're best for ebooks - but I get the same issue if I switch to jpg).

Strangely - another of my files has a number of png images, and Calibre converts them all into the epub with no problems, apart from this one image at the start of the book, which it ignores. There are no error messages.

I found a workaround. First I tried saving the docx as a web page; then I zipped up the html file and folder of images Word created as a single file to drag into Calibre. I converted to epub - image still missing in the epub (even though I can see it in the zip file subfolder).

Then I tried again, this time repeating it but saving it from Word as "Web page - filtered". And Calibre is able to convert that and display the png colophon with no problem! Which raises various questions:

1. Any idea why this works? As in, what does Calibre see differently from the docx and basic html versions? Is it a bug in Calibre that I need to report?

2. I could add this to my standard procedure, but could the extra stage of saving the doc as a "Web page - filtered" first cause other problems (e.g. in layout) while fixing the missing colophon? I'm always wary of adding extra stages, since it always seems like an extra chance for weirdness.

I switched to Calibre as a way round having to rely on the Smashwords/Pronoun/KDP converters, and thought I'd found a nice simple system in using it to generate my own docx>epub ... until this!

If I have overlooked anything obvious as to why that image is being ignroed by Calibre I'd be grateful. This task has taken days so far, I had expected it to only take an afternoon. (Bad mistake, I know.)

Oh, all this has been replicated by someone else using my source files. I've attached the files I can, but strangely even though Calibre will convert from docx (not doc), this forum won't let me upload docx, only doc files, so it won't let me attach one of the files I converted from as an example ...

Finally - I was on an old version of Calibre from 2013, but uninstalled it and installed the 64 bit 2.67 version today. Same problem.

Attached Thumbnails
Click image for larger version

Name:	illustration of image issue (1).jpg
Views:	N/A
Size:	65.9 KB
ID:	151634   Click image for larger version

Name:	illustration of image issue (2).jpg
Views:	N/A
Size:	157.3 KB
ID:	151635  
Attached Files
File Type: txt conversion log.txt (4.6 KB)
File Type: epub Harvest Festival - Karl Drinkwater.epub (777.4 KB)

Viewing all articles
Browse latest Browse all 3900

Trending Articles