[Exe Thumbnailer] Workaround Qt bug in ico detection heuristic

Authored by broulik on Oct 1 2018, 7:15 AM.

Description

[Exe Thumbnailer] Workaround Qt bug in ico detection heuristic

Ico files mostly contain PNGs these days which retain their image header when embedded into an ICO file.
As a result the bits per pixel in the ICO header can be missing or incorrect.
Qt still manages to extract the underlying PNG just fine but the canRead gives up prematurely.

Differential Revision: https://phabricator.kde.org/D15819

Details

Committed
broulikOct 1 2018, 7:15 AM
Differential Revision
D15819: [Exe Thumbnailer] Workaround Qt bug in ico detection heuristic
Parents
R320:5943efcfed8d: [Exe Thumbnailer] Ignore depth > 32
Branches
Unknown
Tags
Unknown