Anki fails to attach .TIF images to cards

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:

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

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). 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.

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?

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

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