jakar / qt-heif-image-plugin

Qt plugin for HEIF images
GNU Lesser General Public License v3.0
65 stars 12 forks source link

Limit file type brands supported #7

Closed jakar closed 6 years ago

jakar commented 6 years ago

We should limit the brands supported in IOHandler::canReadFrom() to what libheif supports, which appears to be heic and mif1.

jakar commented 6 years ago

There current values were taken from here.

jakar commented 6 years ago

I no longer think that it's a good idea to change this. I was able to open a file with a brand of msf1.

The linked source above is for writing (not reading). And where it matters, all compatible brands are checked, not just the major brand.