Re: [Gimp-user] Help newbie with plugin dev guidance
- From: Ofnuts <ofnuts gmx com>
- To: gimp-user-list gnome org
- Subject: Re: [Gimp-user] Help newbie with plugin dev guidance
- Date: Thu, 27 Jun 2019 22:17:26 +0200
On 6/26/19 4:57 PM, MakerMatrix wrote:
I've experience writing code in Perl, C, on UNIX platforms. But new to GTK,
gimp plugins, python, and just about anything dev-related on Windows.
I want to write a plugin/app that does the following:
- Opens a GTK dialog that displays an MxN matrix of int values and a few buttons
to interact with those values.
Not much experience with GTK bit when I tried (PyGTK) it wasn't that hard.
- Reads data over serial from an Arduino sensor to populate that matrix with
measured values.
Not a problem.
- Once fully populated, allow the user to send the MxN matrix to a GIMP plugin
that processes it into an M*S x N*S (where S > 1) 8-bit grayscale image
You are already in the plugin.
that can
then be saved in a format that GIMP probably doesn't already support (that I
don't yet fully understand but do have access to code that reads/writes it).
Gimp supports most usual image formats. Is someone reinventing the
wheel? You can add file type handlers in Gimp, and in the worst case the
handler can save the image in a usual format and then run a converter on
the file.
- Run on Win/Mac/Linux if possible
That will be Python, then, if you want to avoid recompiling things for
all platforms.
If you can please point me to resources/tutorials for learning how to do
something like that, I would be grateful. I've already watched 2-3 YT videos on
plugin development with script-fu and am about to go check out the tutorials
link that I saw when I registered on the site.
The Gimp source code contains several Python plugins. The python
interface is documented here:
http://www.gimp.org/docs/python/index.html
Welcome to the club :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]