# Anki fails to attach .TIF images to cards

**URL:** <https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609>\
**Category:** Help\
**Created:** [July 30, 2024, 2:08am UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609 "2024-07-30T02:08:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cearloca](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cearloca](https://forums.ankiweb.net/u/cearloca)\
**Post date:** [July 30, 2024, 2:08am UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609/1 "2024-07-30T02:08:30Z")

</div>

I have some .TIF files that I wanted to add to cards. Even though TIF is listed as a supported image format in editor.py, when I try to attach them to the cards, the images themselves do not load correctly and instead produce the broken image icon. See below for an example:

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/c/fc6c8a41da84e345b966a1e6cbd1585fa63b359c.png)

This occurs regardless of the method of inserting the image (copy pasting, and using the “attach pictures/audio/video” both fail to load the images). I also tried with multiple different images, but none of them seem to work.

Version ⁨24.06.3 (d678e393)⁩  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1  
Running on Apple Silicon, with no add-ons

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 30, 2024, 5:44am UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609/2 "2024-07-30T05:44:39Z")

</div>

It surprises me that TIF is included in the list of supported attachments, because there’s very little browser support for TIFs as images (see [Comparison of web browsers - Wikipedia](https://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support)). I don’t know quite how Anki would swing that, since your cards are shown to you just like little webpages.

The good thing is there’s a workaround. Whatever you used to create the TIFs can probably convert them to a different format for you.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 31, 2024, 1:14pm UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609/3 "2024-07-31T13:14:18Z")

</div>

tif was not quite as rare back in Anki’s early days, and the old webkit did support it I believe. But it’s a rare format these days, and probably seen as not worth the maintenance and security risk by the webengine developers. I guess we should remove it from the supported image list?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 31, 2024, 2:55pm UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609/4 "2024-07-31T14:55:59Z")

</div>

I think that’s probably the most apt solution (and for “tiff” as well).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 30, 2024, 2:56pm UTC](https://forums.ankiweb.net/t/anki-fails-to-attach-tif-images-to-cards/47609/5 "2024-08-30T14:56:54Z")

</div>

Closed on August 30, 2024, 2:56pm UTC

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