plug-ins: disable magics detection for Windows CUR and ICO files

The magics used for detection for CUR and ICO are not very unique and
interfere with the detection of certain types of TGA images.
Since these TGA images are regularly used, it seems better to only base
CUR and ICO detection on the extension, just as we do with TGA version 1
files.

See also issue #7912
This commit is contained in:
Jacob Boerema 2023-02-14 15:36:13 -05:00
parent 3e93779172
commit 3f4c279276

View file

@ -107,10 +107,11 @@ query (void)
load_args, load_return_vals);
gimp_register_file_handler_mime (LOAD_PROC, "image/x-ico");
gimp_register_magic_load_handler (LOAD_PROC,
"ico",
"",
"0,string,\\000\\001\\000\\000,0,string,\\000\\002\\000\\000");
/* We do not set magics here, since that interferes with certain types
of TGA images. */
gimp_register_load_handler (LOAD_PROC,
"ico",
"");
gimp_install_procedure (LOAD_THUMB_PROC,
"Loads a preview from an Windows ICO file",