Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2026, 05:02 PM   #1
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
image display

Hello,
I created an e-book in EPUB format using Calibre from a .docx file.
I've noticed that the images aren't displaying properly. They're not centered, are incomplete, or are even oriented incorrectly!
How can I fix this issue, which is happening on my Kobo Clara e-reader?
Here are some examples.
Thanks for your help.
Philippe
Attached Thumbnails
Click image for larger version

Name:	20260502_163019.jpg
Views:	77
Size:	615.6 KB
ID:	223087   Click image for larger version

Name:	20260502_163001.jpg
Views:	66
Size:	647.0 KB
ID:	223088   Click image for larger version

Name:	20260502_162915.jpg
Views:	59
Size:	641.1 KB
ID:	223089  
WebLim is offline   Reply With Quote
Old 05-03-2026, 05:56 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,944
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Basically, your CSS is not correct likely to not using the correct styles in whatever program was used to create the .docx original. I would suggest opening the ePub in an ePub editor such as Sigil or calibre's ebook-editor and fixing it up.

If you would like to post your ePub as an attachment to a message here, you'll probably get more help and contradictory opinions than you could shake a stick at (the contradictory opinions because there are multiple ways to do many tasks and we all seem to get attached to our preferred methods).

I'm also going ask if some nice administrator could move this discussion to the ePub forum where it will be more at home.
DNSB is online now   Reply With Quote
Old 05-04-2026, 07:07 AM   #3
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
Thanks for your reply,
I've attached the ePub file.
Note that this issue appears on my Kobo Clara e-reader, but the display is correct in the Calibre viewer! (see image) Mysterious...
Attached Thumbnails
Click image for larger version

Name:	2026-05-04 12 56 47.jpg
Views:	47
Size:	107.1 KB
ID:	223101   Click image for larger version

Name:	2026-05-04 13 00 39.jpg
Views:	38
Size:	73.5 KB
ID:	223102   Click image for larger version

Name:	2026-05-04 13 01 47.jpg
Views:	40
Size:	56.6 KB
ID:	223103  
Attached Files
File Type: epub Fing-Lieur-T1-corr.epub (945.8 KB, 42 views)

Last edited by WebLim; 05-04-2026 at 07:12 AM.
WebLim is offline   Reply With Quote
Old 05-04-2026, 09:14 AM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 15,471
Karma: 114319649
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Use a centred text paragraph style (not a direct format) and put the image in that in source. Also check image anchor is character and also image style.

I only edit in odt and save an extra docx for Calibre, which is never opened in an editor.

Make sure all document and editor defaults are pt. Then 12 pt = 1em. Body text thus 12 pt. Only inches/cm/mm for PDFs.

The only post conversion editing (for larger images) in Calibre may be to replace width & and height values in the CSS. By default It may be pt (you can then use % for one axis and auto for the other). Note a CSS / HTML px is not always pixels. The % is safest for larger images. Only fullscreen needs an SVG wrapper.

Last edited by Quoth; 05-04-2026 at 09:21 AM.
Quoth is offline   Reply With Quote
Old 05-04-2026, 09:27 AM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 15,471
Karma: 114319649
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
The Calibre viewer is only 100% good to check TOC and all links as it's really a web browser made to work like epub renderer. An eink epub reader (not KOReader) is a better test. Also check on a small phone using Lithium, Pocketbook etc apps.

Sane simpler epubs are converted fine by Amazon, though the shortly to be extinct azw3/KF8 is more similar than KFX.

We ceased testing mobi/KF7 conversion last year when Amazon ended Broweser based downloads for USB transfer as K3 and all later gen Kindles do KF8. Now we won't check Amazon conversions at all.
Quoth is offline   Reply With Quote
Old 05-04-2026, 11:33 AM   #6
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
OK, thanks. I'll look into it and let you know.
Have a nice day
WebLim is offline   Reply With Quote
Old 05-04-2026, 11:54 AM   #7
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
I'm getting better results with your advice.
The only remaining issue is that images in portrait orientation in Word are displayed in landscape orientation and therefore appear cropped.
What should I do?
WebLim is offline   Reply With Quote
Old 05-04-2026, 09:22 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,944
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it may be worth, I took a quick look at the epub, used svg wrappers for the full page images, corrected the chapter subheaders, etc.

I've attached a copy to this message. This is not what I would consider a clean final result, it was the result of killing 10 minutes so epubcheck did not spray multiple error messages.
Attached Files
File Type: epub Fing-Lieur-T1-corr.epub (944.9 KB, 35 views)
DNSB is online now   Reply With Quote
Old 05-05-2026, 09:58 AM   #9
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
Thanks—the images do indeed display correctly on my Kobo Clara.
How do I modify the SVG tag to display the images vertically?
WebLim is offline   Reply With Quote
Old 05-05-2026, 10:22 AM   #10
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
Quote:
Originally Posted by WebLim View Post
Thanks—the images do indeed display correctly on my Kobo Clara.
How do I modify the SVG tag to display the images vertically?
I used
transform="rotate(90 100 100)"
but the image isn't centered
WebLim is offline   Reply With Quote
Old 05-05-2026, 01:50 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,944
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
When I want to rotate an image by 90 degrees in an ePub2, I just add transform="rotate(90deg)" to the svg element which rotates the image 90 degrees around it's centre point.

Code:
<svg class="pic" xmlns="http://www.w3.org/2000/svg" height="100%" version="1.1" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet"  viewBox="0 0 1388 981"><image height="981" width="1388" xlink:href="../Images/UIDAS_(UIdas.png" transform="rotate(90deg)" /></svg>
It may just be easier to rotate the images in a image editor, crop any excess white space and then re-inject the images into the ePub file.

Edit: I've edited the images to reduce white space and rotate 90°. The resulting ePub is attached.
Attached Files
File Type: epub Fing-Lieur-T1-corr.epub (997.8 KB, 42 views)

Last edited by DNSB; 05-05-2026 at 02:44 PM. Reason: Added ePub2 information
DNSB is online now   Reply With Quote
Old 05-08-2026, 11:28 AM   #12
WebLim
Junior Member
WebLim began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2026
Device: kobo clara
manythanks
WebLim is offline   Reply With Quote
Old 05-08-2026, 06:18 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,944
Karma: 180003020
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I should explain that I prefer rotating the images externally since I've found issues in the past with various ePub2 and ePub3 renderers when using transform to rotate images. KISS principle in action.
DNSB is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Display Size Help AlwaysNew ePub 19 07-21-2020 09:35 PM
About image display in viewer roger64 Editor 2 08-05-2017 07:03 AM
image caption display xmlgirl ePub 1 05-21-2015 10:24 PM
Display of a png image linked to a svg image roger64 Editor 6 03-13-2015 06:21 AM
Cover Image Display JoeD OpenInkpot 9 05-05-2009 12:42 AM


All times are GMT -4. The time now is 09:55 PM.


MobileRead.com is a privately owned, operated and funded community.