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 -
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)
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
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
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,
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
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
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