Mark ([EMAIL PROTECTED]) wrote:
> What is the PDB function call to automatically open a jpeg from within an 
> extension?

"file-jpeg-load"  (surprise!)  :-)

This returns an image ID and you need to do an "gimp-display-new" (and
probably a "gimp-displays-flush" is a good idea).

There is also a "gimp-file-load" which is not limited to jpeg.

For the exact parameters have a look at <Toolbox>->Xtns->DB Browser.

It might be an interesting idea to implement this as an own filetype,
similiar to the gzip/wget-filetype. So you can save your image as
(e.g.) fooimage.jpg.db and it gets stored to the database and
Gimp's "Save" Function automagically does the same. Have a look
at the gzip-code to learn how to register your plugin for this

Gimp-developer mailing list

Reply via email to