I am using pandoc to create EPUB files from markdown files to read the EPUB on my Kobo. It works well except with the cover which is not displayed at the proper size.

Here is the cover image:

enter image description here

Here is the result:

photo of the EPUB displayed on my Kobo

Here is the command I use to create the book:

pandoc first.md second.md --epub-cover-image=cover.png -o ebook.epub

The cover image dimensions are: width: 1600 px; height: 2400 px following recommendations here:


But size is still weird with other dimensions. I wish it would auto-resize.

Any idea how to fix it ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.