![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2023
Device: Kobo Aura One
|
Kobo changes Aspect Ratio (width) of my Covers
Hello, I always use Calibre to upload my books into Kobo Aura One.
I know how to edit the covers, download them, change them and I have never had any problems until now! I uploaded a series of books (Camilleri) and some of them have problems with the covers. The covers look perfect on my Calibre library and also if I click Edit Metadata or Edit Book in Calibre. In Kobo when I open the book, the cover looks distorted. As you can see from the 1st image, Kobo keeps the Height but changes the Width. Strangely, when I put Kobo to sleep, the cover is perfectly displayed on the sreen (see image 2). I think there must be some wrong settings, I tried to re-upload the covers and also the books but it did not work. I have the following plugins in Calibre: KoboUtilities Kobo Reader Device Interface KoboTouch Kobo Reader Do you have any idea of suggestion please? Thanks in advance ![]() |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Open the cover.xhtml page in the Editor.
You should have this... preserveAspectRatio="xMidYMid meet" But you probably have this instead... preserveAspectRatio="none" |
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2023
Device: Kobo Aura One
|
I cannot find it (see below)
Also in the Kobo Touch plugin I have 'keep cover aspect ratio' checked. <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cover</title> <link href="../Styles/template.css" rel="stylesheet" type="text/css" /> <style type="text/css"> @page {padding:0; margin:0;} img{height: 100%;} </style> </head> <body style="padding:0; margin:0;"> <div class="image" id="my_cover_image"><img alt="Cover" height="764" src="../OEBPS/cover.jpg" width="550" /></div> </body> </html> |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Replace your code with this...
Spoiler:
You will need to adjust the viewbox and the width and height values to match your cover image dimensions and relink the href: image. Remember to make a backup first, so you can easily revert if needed. |
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Alternately, you could use the Modify ePub plugin to replace the cover image page with one that has the svg wrapper bits and bobs set up for the size of image you are sending. It's likely a bit faster than manually editing your ebooks. The results be close to what @Karellen posted.
Spoiler:
|
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="calibre:cover" content="true" /> <title>Cover</title> <style type="text/css" title="override_css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 880 1600" preserveAspectRatio="xMidYMid meet"> <image width="880" height="1600" xlink:href="../images/cover.jpeg"/> </svg> </div> </body> </html> |
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2023
Device: Kobo Aura One
|
Thank you all. I tried the Modify ePub solution but it did not work. The cover width is still wrongly distorted on my Kobo
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=267998 |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
For example, covers at Overdrive are 800x600 and most of them are not aspect ratio correct. |
|
![]() |
![]() |
![]() |
#10 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Also, you might want to restart your Kobo after resending the books. The cover images could be cached in memory which the restart will clear.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embed metadata: preserve aspect ratio on covers | Lukusaukko | Library Management | 4 | 03-03-2023 05:31 AM |
Aspect ratio of the covers under grid view | edwarddiaz | Library Management | 3 | 02-13-2023 05:54 PM |
css if img aspect-ratio >1/1 width:100%, otherwise width:50% | rjwse@aol.com | Editor | 0 | 03-19-2021 07:41 AM |
Image aspect ratio | dan2the6th | Editor | 6 | 09-29-2020 07:27 PM |
Aspect Ratio for Covers? | Buddy13 | Kobo Reader | 10 | 10-21-2011 07:45 AM |