View Issue Details

IDProjectCategoryView StatusLast Update
0026738mantisbtattachmentspublic2026-04-12 18:48
Reporterwebaware Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.23.0 
Target Version2.29.0Fixed in Version2.29.0 
Summary0026738: WebP attachments are not forced to display inline
Description

file_download.php builds a local array of mime types that will be forced to display inline: $t_mime_force_inline

This array does not include 'image/webp', and cannot be overridden, so WebP images are forced to download. It would be better to allow them to display inline as per other image formats. Of the popular web browsers, only IE11 and Safari browsers cannot display WebP images, so I reckon it's no risk to allow WebP images to display inline always.

https://caniuse.com/#search=webp

If it is considered a risk, then perhaps $t_mime_force_inline can be made a configuration item that can be overridden in local configs for people who don't care about IE11 and Safari.

Steps To Reproduce
  • attach a WebP image to a bug
  • view the bug, seeing the image expanded inline
  • click on the image and note that you are forced to download it
TagsNo tags attached.

Activities

dregad

dregad

2026-04-12 12:47

developer   ~0070976

I just stumbled upon this (again). I had actually started working on it back in 2020, but left it aside due to lack of support for WebP format in some browsers at the time.

According to caniuse.com, nowadays this is no longer an issue as all browsers support it.

webaware

webaware

2026-04-12 18:33

reporter   ~0070984

Thanks, much appreciated.

dregad

dregad

2026-04-12 18:48

developer   ~0070986

Yeah, sorry it took so long ;-)

Related Changesets

MantisBT: master aa457879

2026-04-12 12:48

dregad


Details Diff
Allow inline display of WebP images

Fixes 0026738
Affected Issues
0026738
mod - file_download.php Diff File