Groups | Search | Server Info | Login | Register
Groups > comp.graphics.misc > #551
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc, comp.graphics.misc, nz.comp |
| Subject | Python 3 For GIMP 2 |
| Date | 2024-03-26 22:35 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <utvijr$2cr93$1@dont-email.me> (permalink) |
Cross-posted to 3 groups.
As you may know, GIMP 3 is taking a while to appear. In the meantime, the Python API in GIMP 2 is built on obsolete Python 2, which many distros have dropped. This leaves their standard GIMP 2 packages without Python support. However, there is another solution. It turns out the core of GIMP has no dependency on Python at all, so it is possible to create alternative wrappers around the shareable libraries that are used by GIMP plugins (libgimp-2.0.s0.0 etc). I have done this using the ctypes library that comes with Python 3, to create the Pylibgimp2 project <https://gitlab.com/ldo/pylibgimp2>. So far, the API wrapper has been good enough to port some simple (less than 100 lines each) GIMP plugins that I wrote many years ago. It’s not complete, by any means. But let me know if this sort of thing is worth persevering with, and maybe I’ll do some more work on it. ;)
Back to comp.graphics.misc | Previous | Next | Find similar
Python 3 For GIMP 2 Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-03-26 22:35 +0000
csiph-web