.webp images cannot be viewed in attachment preview

Infos:

  • Used Zammad version: 5.2.3-4
  • Used Zammad installation type: docker-compose
  • Operating system: Rocky Linux 8.6 (running docker)
  • Browser + version: Edge 107.0.1418.24

Expected behavior:

  • webp images attached to tickets should be able to be previewed in the same way as traditional image formats like png and jpeg

Actual behavior:

  • webp images are downloaded, rather than previewed

Steps to reproduce the behavior:

  • See gif below demonstrating the issue
  • Attach a webp image to a ticket
  • Attach jpeg image to a ticket
  • Clicking the thumbnail on the jpeg will display an image preview
  • Clicking the thumbnail on the webp downloads the image instead of previewing

webp image attachment example