RSS/Atom feed Twitter
Site is read-only, email is disabled

Read/write plugin

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

Read/write plugin Soren Hauberg 04 Jul 20:23
  Read/write plugin Shlomi Fish 04 Jul 21:45
   Read/write plugin Sven Neumann 05 Jul 10:15
  Read/write plugin David Neary 04 Jul 21:47
  Read/write plugin Jeff Trefftzs 04 Jul 23:55
  Read/write plugin Soren Hauberg 05 Jul 11:38
Soren Hauberg
2004-07-04 20:23:06 UTC (almost 20 years ago)

Read/write plugin

Hi everybody
This is my first post to this list, so please be gentle :-) I'm a student of computer science at the University of Copenhagen (DIKU) working mostly with image processing. At DIKU we have a rather old image C library and hence quite a bit images stored in the image format used in this library.
I'd like to be able to read and write this kind of images in gimp, but how do I get started?
I guess I have to write a plugin but the docs a rather outdated (at least the ones I can find). Any hints on how to get started would be appreciated.

Regards,
Søren

Shlomi Fish
2004-07-04 21:45:05 UTC (almost 20 years ago)

Read/write plugin

0

David Neary
2004-07-04 21:47:12 UTC (almost 20 years ago)

Read/write plugin

Hi Soren,

Soren Hauberg wrote:

I'd like to be able to read and write this kind of images in gimp, but how do I get started?

I did a presentation on writing plug-ins in GUADEC - *very* basic but there is a sample plug-in included. The paper is online at http://dneary.free.fr/gimp

I guess I have to write a plugin but the docs a rather outdated (at least the ones I can find). Any hints on how to get started would be appreciated.

Your best bet, once you know the basics of a plug-in, is to pick an existing file plug-in that does a simple format. The one I usually reccommend is pnm - in the GIMP sources, this is in plug-ins/common/pnm.c. This is good because it shows the basics of saving and writing an image without having the overhead of using a 3rd party library, or having file format overhead involved.

Cheers,
Dave.

Jeff Trefftzs
2004-07-04 23:55:14 UTC (almost 20 years ago)

Read/write plugin

On Sun, 2004-07-04 at 11:23, Soren Hauberg wrote:

Hi everybody
This is my first post to this list, so please be gentle :-) I'm a student of computer science at the University of Copenhagen (DIKU) working mostly with image processing. At DIKU we have a rather old image C library and hence quite a bit images stored in the image format used in this library.
I'd like to be able to read and write this kind of images in gimp, but how do I get started?

You didn't say what format the C library uses: perhaps it's one of the many for which conversion programs already exist. If you are running on a *nix system (Unix, Linux, BSD, Solaris ...) the portable bitmap package may already have a conversion program. And then there's always ImageMagick, which also can convert to and from innumerable image formats.

If the issue is more one of learning how to write a Gimp plug-in, other messages in this thread will probably be of more help.

HTH,

Sven Neumann
2004-07-05 10:15:10 UTC (almost 20 years ago)

Read/write plugin

Hi,

Shlomi Fish writes:

If there's an API function that you don't understand you can look at its description in the header files and source code under "libgimp/", "libgimpbase", etc. grep is your friend.

I also suggest you use the API documentation which can be found in the GIMP source tree in the devel-docs folder or online at

http://developer.gimp.org/api/2.0/

Sven

Soren Hauberg
2004-07-05 11:38:51 UTC (almost 20 years ago)

Read/write plugin

Hi again
Thanks for all the reply's - that was really fast. Anyway, I'll be looking into the bmp plug-in and then I'll properbly come running for help again.

Thanks all, Søren