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 - write a temporary file and load it via a PDB call.

Option c) Use some jpeg library (say libjpeg) to read it.

(b) is the probably the simplest, but I am not happy about going to the file system and all the issues it brings. On the other hand (c) is quite complicated.

Can someone make a suggestion?

Thanks, Joseph

Sven Neumann wrote:

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 the prepared/pre-stored thumbnail
which exists in the file.

From what I could see, there is no way I (the plugin author) can
detect if the call is for a thumbnail or not.

Note that I have just added the missing API for plug-ins and also
implemented the core functionality. What's missing now is some more
plug-ins using this feature. See also



Gimp-developer mailing list

Reply via email to