welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
97 stars 32 forks source link

nani_logo.webp cannot be read #318

Closed faassen closed 1 month ago

faassen commented 1 month ago

Bug Report

When I start tabi from the project directory using zola serve as in the instructions, I get the following error:

Error: Failed to serve the site
Error: Failed to render section '/home/faassen/projects/tabi/content/projects/_index.es.md'
Error: Reason: Failed to render 'cards.html'
Error: Reason: Function call 'get_image_metadata' failed
Error: Reason: `resize_image`: Failed to read image: /home/faassen/projects/tabi/content/projects/nani/nani_logo.webp

I looked at nani_logo.webp and I can open it in image viewers and the gimp.

I could fix this as follows:

I opened nani_logo.webp in gimp, and then exported it again using webp. After this zola serve does start without complaint. It appears there's something in this webp image that at least on some platforms makes the image unreadable with zola, and that the re-exported version fixes this.

Environment

Zola version: 0.17.2 tabi version or commit: c54251ca7ab6f715ceacba7ed6406df683aa364b

I'm on Fedora Linux 39.

Expected Behavior

I expect zola serve to start without error.

Current Behavior

zola serve crashes with the above error.

Step to Reproduce

Check out tabi, run zola serve.

welpo commented 1 month ago

Thanks for reporting this!

I've encountered this issue with webp files in the past. I did not know it was possible to fix the issue on one OS but not another.

Would you be willing to open a simple PR with the fixed image?

Thanks!

faassen commented 1 month ago

Okay I've added a PR.