Skip to content

[Windows Image Thumbnailer] Generate thumbnails for ANI files

Kai Uwe Broulik requested to merge work/kbroulik/anithumb into master

Now that we have an ANI image plugin. The thumbnailer already lists ANI files in its mime type list but that couldn't actually have worked before.

The thumbnailer explicitly calls into Qt's "ico" handler, so it won't auto-detect ANI files. However, we also don't want to run into its icon selection algorithm (picking the best fitting and highest color depth icon there is) because the images we have are just image sequences, so we'll just run the QImageReader directly should we enocunter an ANI file.

ANI files are a lot less common than ICO, so put it after the existing loadIcoImage call which will fail soon enough when it finds it can't read it using the "ico" plugin, to save a pointless mime type query every time.


@aacid @bruns

(should be a safe backport to 20.12 but I'm fine with just shipping in master)

Merge request reports

Loading