Hi, Sylvain Jaume <jaume@xxxxxxxxxxxxxx> writes: > I've got a bunch of files file_name.001, file_name.002, file_name.003, ... > Each pixel is coded with 2 bytes. So I decided to write a loader for this > type of files. But the extensions parameter to > gimp_register_magic_load_handler doesn't accept a pattern like "%03d" to > say that the file extension is a 3 digit integer (padded with zeros). > > How to tell Gimp to recognize file extension .001, .002, .003, ... ? I don't think that this is possible, but you shouldn't rely on file extensions anyway. Your file format certainly has a header of some sort that can be used to detect the format. Salut, Sven