Re: [Gimp-developer] pattern for gimp_register_magic_load_handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux