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

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

 




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 - 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:
Hi,

a while ago Joseph Heled <pepster@xxxxxxxxxxxxxxxxxxxxx> 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

  http://bugzilla.gnome.org/show_bug.cgi?id=158190
  http://bugzilla.gnome.org/show_bug.cgi?id=158191
  http://bugzilla.gnome.org/show_bug.cgi?id=158192
  http://bugzilla.gnome.org/show_bug.cgi?id=158193


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