# Including gif images in MultiQC report?

**URL:** <https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640>\
**Category:** Ask for help\
**Tags:** multiqc\
**Created:** [January 23, 2025, 3:46am UTC](https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640 "2025-01-23T03:46:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gagnonanthony](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/gagnonanthony/32/1354_2.png) [@gagnonanthony](https://community.seqera.io/u/gagnonanthony)\
**Post date:** [January 23, 2025, 3:46am UTC](https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640/1 "2025-01-23T03:46:25Z")

</div>

Hi Nextflow/MultiQC community!

This may be better suited for a feature request on GitHub, but I wanted to gather information before doing that.

I’m currently using MultiQC in my neuroimaging pipeline to create QC screenshots of some essential processing steps, which works great. However, for some steps (such as registration), including a .gif file would be more informative since the user could evaluate the alignment between two images simply by looking at the gif.

I guess this brings up two questions:

1. Is there a way to include a .gif file in the MultiQC report? From what I read in the documentation, gif files do not seem to be supported in MultiQc.
2. If not, would it be possible to add this functionality?

Thank you for this great package, by the way!

Best,  
Anthony

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [January 23, 2025, 9:46am UTC](https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640/2 "2025-01-23T09:46:20Z")

</div>

Hi @gagnonanthony,

This seems like a reasonable request, I just tried and couldn’t get it to work, so I opened a small PR to add support for `.gif` (and also `.webp` and `.tiff` because why not):

> <https://github.com/MultiQC/MultiQC/pull/3058>
>
> As requested in https://community.seqera.io/t/including-gif-images-in-multiqc-re…port/1640
> 
> It's very likely that \`.tiff\` files could be huge and will break reports / crash browsers. But as this is Custom Content it's a bit the wild-west already, so it's up to end users to handle this responsibly. At least MultiQC won't arbitrarily crash during report generation after this PR.

Please bear in mind that embedding large images in reports can make them huge and crash the browser. This is especially true because the files are decoded and base64 encoded within the HTML which is significantly less efficient. In my test a `.gif` of 3.6MB and `.webp` of 44KB gave a MultiQC report that was 16.2MB. So handle with care!

[gif-multiqc.zip](https://community.seqera.io/uploads/short-url/m6nlTvVFD9Tja050R9YByHTzqwA.zip) (12.8 MB)

Phil

![myfirstwebp_mqc](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/2X/0/0336419aeae38ca851758f62d296f0b2b7c52085.webp)

---

<div class="post-metadata">

**Author:** ![gagnonanthony](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/gagnonanthony/32/1354_2.png) [@gagnonanthony](https://community.seqera.io/u/gagnonanthony)\
**Post date:** [January 23, 2025, 12:46pm UTC](https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640/3 "2025-01-23T12:46:52Z")

</div>

Amazing @ewels ! Thank you so much!

Anthony

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/system/32/2402_2.png) [@system](https://community.seqera.io/u/system)\
**Post date:** [January 30, 2025, 12:47pm UTC](https://community.seqera.io/t/including-gif-images-in-multiqc-report/1640/4 "2025-01-30T12:47:33Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
