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

gimp-edit-copy

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.

gimp-edit-copy Peter Suetterlin 17 Apr 10:05
  gimp-edit-copy Michael Natterer 17 Apr 12:46
   gimp-edit-copy Peter Suetterlin 17 Apr 15:09
  gimp-edit-copy Michael Natterer 17 Apr 12:48
  gimp-edit-copy Ofnuts 17 Apr 13:10
   gimp-edit-copy Peter Suetterlin 17 Apr 15:14
Peter Suetterlin
2017-04-17 10:05:51 UTC (almost 7 years ago)

gimp-edit-copy

Hi,

I recently switched to the 2.9 series of gimp(*). Some of the script-fus I regularly use do need babysitting, in particular the 'maximize local contrast' script by Roy Johnson. I fixed the deprecated function calls, but it always failed in the final step where an edit buffer captured via gimp-edit-copy should be pasted into a layer mask.

After some debugging on the script-fu console it turned out the reason for the failure was that the edit buffer was empty.

I could fix the problem by selecting the full area before the call to gimp-edit-copy. But acording to the docs it should do this by itself if nothing is selected.

Has this changed lately, or is it a bug to report?

I'm running openSUSE Tumbleweed, with a package from home:/Herbster0815. It's called gimp-2.9.4-64.12, but reports itself as 2.9.5, so I don't know the exact version but assume it's from git?

Pit
(*) Really amazing! You're doing a really great job on this. I'll for sure stick with 2.9

Dr. Peter "Pit" Suetterlin                 http://www.astro.su.se/~pit
Institute for Solar Physics
Tel.: +34 922 405 590  (Spain)             P.Suetterlin@royac.iac.es
      +46 8 5537 8559  (Sweden)            Peter.Suetterlin@astro.su.se
Michael Natterer
2017-04-17 12:46:23 UTC (almost 7 years ago)

gimp-edit-copy

Hi Peter,

If any script works fine in 2.8, but not in git master, please file a bug.

Regards,
Mitch

On Mon, 2017-04-17 at 11:05 +0100, Peter Suetterlin wrote:

  Hi,

I recently switched to the 2.9 series of gimp(*).  Some of the script-fus I
regularly use do need babysitting, in particular the 'maximize local contrast'
script by Roy Johnson.  I fixed the deprecated function calls, but it always
failed in the final step where an edit buffer captured via gimp-edit- copy
should be pasted into a layer mask.

After some debugging on the script-fu console it turned out the reason for the
failure was that the edit buffer was empty.

I could fix the problem by selecting the full area before the call to gimp-edit-copy.  But acording to the docs it should do this by itself if
nothing is selected.

Has this changed lately, or is it a bug to report?

I'm running openSUSE Tumbleweed, with a package from home:/Herbster0815.
It's called gimp-2.9.4-64.12, but reports itself as 2.9.5, so I don't know the
exact version but assume it's from git?

  Pit   
(*) Really amazing!  You're doing a really great job on this.  I'll for sure
stick with 2.9

Michael Natterer
2017-04-17 12:48:39 UTC (almost 7 years ago)

gimp-edit-copy

On Mon, 2017-04-17 at 11:05 +0100, Peter Suetterlin wrote:

  Hi,

I recently switched to the 2.9 series of gimp(*).  Some of the script-fus I
regularly use do need babysitting, in particular the 'maximize local contrast'
script by Roy Johnson.  I fixed the deprecated function calls, but it always
failed in the final step where an edit buffer captured via gimp-edit- copy
should be pasted into a layer mask.

After some debugging on the script-fu console it turned out the reason for the
failure was that the edit buffer was empty.

I could fix the problem by selecting the full area before the call to gimp-edit-copy.  But acording to the docs it should do this by itself if
nothing is selected.

Has this changed lately, or is it a bug to report?

I'm running openSUSE Tumbleweed, with a package from home:/Herbster0815.
It's called gimp-2.9.4-64.12, but reports itself as 2.9.5, so I don't know the
exact version but assume it's from git?

  Pit   
(*) Really amazing!  You're doing a really great job on this.  I'll for sure
stick with 2.9

Oh, and thanks a lot! :)

Ofnuts
2017-04-17 13:10:29 UTC (almost 7 years ago)

gimp-edit-copy

On 17/04/17 12:05, Peter Suetterlin wrote:

I could fix the problem by selecting the full area before the call to gimp-edit-copy. But acording to the docs it should do this by itself if nothing is selected.

IMHO the real fix is to use other ways to move pixels. Applications should not use the clipboard for their own purposes, this interferes with the user's other apps.

Peter Suetterlin
2017-04-17 15:09:14 UTC (almost 7 years ago)

gimp-edit-copy

Hi Mitch,

Michael Natterer wrote:

If any script works fine in 2.8, but not in git master, please file a bug.

OK, here: https://bugzilla.gnome.org/show_bug.cgi?id=781408

Cheers,

Pit

Peter Suetterlin
2017-04-17 15:14:05 UTC (almost 7 years ago)

gimp-edit-copy

Ofnuts wrote:

On 17/04/17 12:05, Peter Suetterlin wrote:

I could fix the problem by selecting the full area before the call to gimp-edit-copy. But acording to the docs it should do this by itself if nothing is selected.

IMHO the real fix is to use other ways to move pixels. Applications should not use the clipboard for their own purposes, this interferes with the user's other apps.

Well, it isn't about getting the script to run on first place. It's rather that the docs say the function copies the whole drawable without a set selection, but it seems it doesn't (it does in 2.8).

That is independent of what you intend to do with that buffer...

Pit