Re: [Gimp-developer] Edit History/Action History on command line/output file

2019-09-19 Thread Paul Thompson via gimp-developer-list
I am finishing a project which does exactly this with GIMP. It does not
solve the problem for the full range of commands in GIMP. But what I have
done is provide a structure for saving commands, a method to output
commands either in script-fu or in ImageMagick command language, and a
method to turn the process on and off in the Preferences dialog in GIMP

Paul A. Thompson

On Thu, Sep 19, 2019 at 12:22 PM Siddhant Goel  wrote:

> Hi GIMP Developers,
>
> Sorry if this is spam. Thank you all for making such a great tool!
>
> I'm using GIMP for my capstone research project at my university, and was
> wondering if anyone could tell me how I could log actions/edit history into
> either a file or command line. Running with --verbose doesn't give details
> about what the performed action was, which is what I need.
> An example of what I'm looking for: When a user tries to use paint brush on
> an unselected/hidden layer.
>
> Thanks again, and sorry for sending it out to everyone, I couldn't find a
> way to get this done without your help.
>
> Sincerely,
> Siddhant
>
> --
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership:
> https://mail.gnome.org/mailman/listinfo/gimp-developer-list
> List archives:   https://mail.gnome.org/archives/gimp-developer-list
>
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] Logging events

2018-05-16 Thread Paul Thompson
 I am actually working on that, and hope to announce a partial success in
the next 2-3 weeks.

Paul A. Thompson


On Wed, May 16, 2018 at 5:17 AM, Angelo Mantellini 
wrote:

> Hi,
>
> I’m new in gimp (development) and I need a hint to get all logs generated
> during events, for example “copy and past” or “line painted”, etc etc.
>
> Do you have ideas?
>
> Thank you very much.
>
> Angelo
>
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-
> developer-list
> List archives:   https://mail.gnome.org/archives/gimp-developer-list
>
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] cairo.h missing - how can I locate it?

2017-10-24 Thread Paul Thompson
When I include gimp/libgimp/gimp.h as  in compile, there is
a statement

#include 

I cannot find cairo.h in my gimp source which I downloaded quite recently.
Is there an additional source which includes the cairo.h file?

Paul A. Thompson
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] Parasite system

2017-09-22 Thread Paul Thompson
I have mentioned occasionally that I am working on the problem of a script
recorder for GIMP. While this is difficult, I think that it is do-able for
a least a limited subset of GIMP commands.

I have concluded, at this point, that the parasite system can be used to
record and track actions. Thus, you need to determine when an action
occurs, and record information about it.

There are the three types of parasites: image, gimp, and global. I have
successfully set up image parasites for some commands. The problem is that
you need a reference to the image to attach a parasite to it. This is not
always available.

Global parasites may be a better choice, but the problem is that I cannot
get these to work.

Image parasites (gimp_image_parasite_attach) are defined in
gimp/app/core/gimpimage.c. I have used them in 3 or 4 other internal
functions.

Global parasites (gimp_attach_parasite) are defined in
gimp/libgimp/gimp_pdb.c. I have tried a number of approaches to using
these, but get the 'undefined reference to ' error during the make install
step.

So, questions:

1) Are global parasites considered appropriate for use at this time, or are
there issues with them?
2) How do I use a global parasite successfully? I have attempted to find
the correct *.h file to include a reference to, but as of today, this has
not worked successfully.
3) Do I need to modify the makefile to successfully use global parasite
fuctions?

Paul A. Thompson
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] Odd problem

2017-07-07 Thread Paul Thompson
I am working on a script recorder for gimp. I am writing out debug
statements to attempt to learn this and that. The problem is that debug
statements in some files print as expected, while the same statement placed
into other files do not print to the calling window.

I am working on a windows system, and have followed the direction in

https://wiki.gimp.org/wiki/Hacking:Building/Windows

These are well-written directions, and enable me to compile a running copy.
So far so good.

I am working with 2 files:

File 1:
gimp/libgimp/gimpimagemetadata.c

All statements put into this file, such as

  g_print("Test 1 - add new print statement\n");

print as directed to the window

File 2:
gimp/app/file/file-open.c

Statements put into this file, including a copy of the statement above, do
not print, regardless of what printing function I use.

I know that  I am going through the relevant section since I open and write
to a file successfully in the section that I have the g_print statement.

The compile is clean, although there are libtool warnings.

Is there some overlooked flag which turns printing on and off in specific
functions that I am unaware of? This is creating difficulties in my
progress.

Paul A. Thompson
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] Compiling GIMP on Windows 10 using Visual Studio Community 2017

2017-05-08 Thread Paul Thompson
I recently compiled and built GIMP on windows, and found those instructions
to be well-written and clear. If followed carefully, the user will have
success.

Paul A. Thompson

On Mon, May 8, 2017 at 8:04 AM, Marco Ciampa via gimp-developer-list <
gimp-developer-list@gnome.org> wrote:

> On Mon, May 08, 2017 at 09:00:22AM +0200, Ivano Arrighetta wrote:
> > As in the subject, how do I compile GIMP on Windows 10 using Visual
> Studio
> > Community 2017?
> >
> > Thanks in advance for any help.
>
> Did you read this?
>
> https://wiki.gimp.org/wiki/Hacking:Building/Windows
>
> bye
>
> --
>
>
> Marco Ciampa
>
> I know a joke about UDP, but you might not get it.
>
> 
>
>  GNU/Linux User #78271
>  FSFE fellow #364
>
> 
>
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-
> developer-list
> List archives:   https://mail.gnome.org/archives/gimp-developer-list
>
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] script recording

2017-03-10 Thread Paul Thompson
I am working on a script recorder for GIMP. I actually have a small grant
for this from ORI.

1) I am trying to do a basic thing - determine the files that are opened
for image source and image export. I found the name of the source file. I
am now working on the export file name.
a) This is done as best I can tell with a number of save_image calls. These
all are in different places related to image encoding (jpeg, png, etc). I
assume this is sort of an overloaded subroutine call. I cannot find where
the save_image call is made. Once the name of the file is determined in the
Export dialog, how is save_image called? And specifically where is the
export dialog?

2) Is there a meta-level description of the GIMP event loop? This would be
a listing of the main event handler, and a listing of what is called for
each event which is raised in the event loop.

Paul A. Thompson, Ph.D., PSTAT
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] Basics and getting started

2017-03-06 Thread Paul Thompson
I am beginning a project about enabling a script recorder (you do actions,
they are recorded for later playback).

Thus far, I have done the following:

1) Within Windows 10, downloaded and installed msys. Following well-written
instructions (which worked 100% correctly), I downloaded tools, installed
babl, gegl, and gimp. Using again these excellent instructions, I compiled
the developmental gimp-2.9. I can run this version.

2) Following instructions found at

http://lightningismyname.blogspot.de/p/compiling-gimp.html

I compiled gimp-2.9 with the debug flag. Now, when I run gimp-2.9, debug
messages appear in my msys command tool window. All good.

3) I am now trying to understand how to modify the program. I have put a
few probe-type commands in various places. Since I get a debug message from


gimp/app/display/gimpdisplayshell-profile

I accessed this file and modified by adding another line with a modified
message directly above the line showing up in the debug.

4) make -j4 and make install -j4 are both successful

5) In running gimp-2.9, my added line, and other lines in other programs do
not show up. Checking dates/times, all .o files are compiled up to date.

What have I omitted in this process?

Paul A. Thompson
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list