Skip to content

pandoc metadata "cover-image" doesn't recognize WebP image #9561

Closed
@selden

Description

@selden

Explain the problem.
Problem:
pandoc metadata "cover-image" doesn't recognize WebP image. It should.

The command line

	pandoc test_webp.html -o test_webp.epub \
       --metadata cover-image="front_cover.webp"

generates the warning message

	[WARNING] Could not determine image size for front_cover.webp: could not determine image type

It'd be nice if the problem causing this warning could be fixed.

Pandoc version?
This warning is seen when using pandoc 3.1.12.2
under Windows 10 Pro x64 22H2 build 19045.4046
with Cygwin 3.5.1

The .webp image file was created using ImageMagick 7.0.10-61
with the command

convert front_cover.jpg -resize 300x300 front_cover.webp

so I think the format of the WebP file itself is OK.

The resulting .epub document does show the cover page image when displayed using the epub reader provided with Calibre 7.6. which again suggests that the file format is OK.

The attached zip file contains the following files which can be used to reproduce the warning message.

test_webp.sh
test_webp.html
front_cover.webp

test_webp.epub
readme.txt

test_webp.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions