Re: [Gimp-developer] open thumbnail and raw files

2004-11-21 Thread Joseph Heled
Hi, In most raw files the thumbnail exists as an embedded jpeg. I know how to read it to memory, but need advice on how to load it into gimp (i.e. create a valid image ID for it). Option a) Perhaps such functionality already exists - but I did not find it? Option b) Go through the file system -

Re: [Gimp-developer] open thumbnail and raw files

2004-11-21 Thread Adam D. Moss
Joseph Heled wrote: Option b) Go through the file system - write a temporary file and load it via a PDB call. (b) is the probably the simplest, but I am not happy about going to the file system and all the issues it brings. I wouldn't be too shy about it. The jpeg plugin itself (last I saw)

Re: [Gimp-developer] open thumbnail and raw files

2004-11-21 Thread Sven Neumann
Hi, Joseph Heled [EMAIL PROTECTED] writes: After some more digging, I think I will use gdk_pixbuf_loader Yes, why not. Seems reasonable since you can probably assume that the embedded thumbnail won't be too large. Sven ___ Gimp-developer mailing

Re: [Gimp-developer] open thumbnail and raw files

2004-11-13 Thread Sven Neumann
Hi, a while ago Joseph Heled [EMAIL PROTECTED] wrote: The gimp Open Image dialog contains preview thumbnail. To generate them, gimp calls the plugin to generate them. Now, for raw digital camera files (.nef, .crw ...) this is a very expensive operation - and obviously one would love to use

Re: [Gimp-developer] open thumbnail and raw files

2004-11-04 Thread Sven Neumann
Hi, Joseph Heled [EMAIL PROTECTED] writes: This affect only load plugins with 4 declared arguments (by the plugin), the forth named thumbnail. static GimpParamDef load_args[] = { { GIMP_PDB_INT32, run_mode, Interactive, non-interactive }, { GIMP_PDB_STRING,

Re: [Gimp-developer] open thumbnail and raw files

2004-11-03 Thread Joseph Heled
Sven Neumann wrote: Hi, Joseph Heled [EMAIL PROTECTED] writes: The gimp Open Image dialog contains preview thumbnail. To generate them, gimp calls the plugin to generate them. Now, for raw digital camera files (.nef, .crw ...) this is a very expensive operation - and obviously one would love to

Re: [Gimp-developer] open thumbnail and raw files

2004-11-03 Thread Sven Neumann
Hi, Joseph Heled [EMAIL PROTECTED] writes: The most natural place is to add an optional argument to the run() gimp arguments. However I am not sure if this is possible. The plug-in interface must remain API and ABI compatible to GIMP 2.0 so changing any of the existing functions is not an

Re: [Gimp-developer] open thumbnail and raw files

2004-11-03 Thread Joseph Heled
Sven Neumann wrote: Hi, Joseph Heled [EMAIL PROTECTED] writes: Great. So what I suggest - i.e. a forth argument to run() to indicate a request for a thumbnail should work and not break other plugins? I think you need to make yourself familiar with the GIMP API. Did you ever look at the API