Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nani_logo.webp cannot be read #318

Closed
faassen opened this issue May 24, 2024 · 2 comments · Fixed by #323
Closed

nani_logo.webp cannot be read #318

faassen opened this issue May 24, 2024 · 2 comments · Fixed by #323
Labels
bug Something isn't working

Comments

@faassen
Copy link
Contributor

faassen commented May 24, 2024

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: c54251c

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.

@faassen faassen added the bug Something isn't working label May 24, 2024
@welpo
Copy link
Owner

welpo commented May 24, 2024

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
Copy link
Contributor Author

faassen commented May 26, 2024

Okay I've added a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants