It is currently Wed Jul 24, 2024 4:33 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 51 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 2:08 pm  (#1) 
Offline
GimpChat Member

Joined: Jan 18, 2014
Posts: 5
Hello. Try as I might, I can't get the script file feather_paste.py to show up in the Edit menu where it's meant to be, or anywhere else in the UI. I've placed it in one or both of the locations shown in Edit->Preferences->Folders->Plug-ins, and made sure there's no .txt on the file name.

Repeated posts in another forum (not allowed to post the URL here) have failed to produce a solution. Having to type in the hard-to-read "Challenge" each time I post there certainly doesn't help matters, so I hope I won't have to do the same kind of thing here. All I really want is to easily feather the edges of selections, ideally with a slider, as I did 15 years ago in Logitech's FotoTouch Color. No one here has heard of it, I know.

I hope GIMP 2.9 will make this kind of thing much simpler. When is that coming out? Among other things that should have sliders: Shrink/Grow a selection. Shall I produce a more complete list? If it'll help, I'll be happy to do so. This trial-and-error approach is just ridiculous. It's clear to see how versatile the GIMP is, and I want to be a happy user. But that'll happen only when simple things like softening edges really are simple, as they were in FotoTouch.

My setup:
Windows Vista 64
GIMP 2.8.10
Python installed

Thanks.

Joe


Last edited by SirCrow on Sat Jan 18, 2014 4:45 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 2:13 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
First question, do you have python installed?
Second, what OS are you using?
32 or 64 bit
Gimp version
These may help with your issue.

_________________
Image


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 2:23 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Can't the normal "Feather" work for you?
Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 3:08 pm  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
SirCrow wrote:
All I really want is to easily feather the edges of selections, ideally with a slider

Greetings and welcome to GIMP Chat.

The selection tools in GIMP have a feather option.

Image

As with most software packages, there is somewhat of a learning curve involved in navigating GIMP.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 3:26 pm  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
You can find lots of this if you search "why is gimp so complicated"
paynejk suggested OP comes here.

The plugin referred to is a bespoke one see:
https://github.com/jsbueno/gimp-plugins ... r_paste.py

I think that maybe the OP has it mangled somehow.

Takes lots of screenshots to explain how it works so here is a video 1.5 mins

Obviously PEBKAC
so why did I bother
http://www.youtube.com/watch?v=7sz7BZ9C9GA&hd=1

_________________
Image


Last edited by rich2005 on Fri Sep 12, 2014 12:35 pm, edited 1 time in total.

Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 3:44 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
One thing that I'm wondering about is that newer versions of windows can sometimes mark downloads as potentially unsafe and needs to be told that it's safe.

As I don't have a suitable version of windows to try, I suggest opening the windows file explorer and right-clicking on the file in question.

Kevin


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 4:42 pm  (#7) 
Offline
GimpChat Member

Joined: Jan 18, 2014
Posts: 5
If you'd ever used FotoTouch for feathering edges, then you'd understand why I'm so inclined to say a resounding NO.
There's just NOTHING like using a slider to see the changes happen instantly. Until/unless GIMP can do that, I will be a GIMP user, but not a happy one. :gaah

Thanks for the reply.

Joe

Wallace wrote:
Can't the normal "Feather" work for you?


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 5:10 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
one other thing

You said you have tried putting the file in various folders but you need to put it into your personal plug-in folder: C:\Users\Joe J\.gimp-2.8\plug-ins otherwise you run the risk of being the victim of the windows virtual store.

Kevin


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 5:27 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
SirCrow wrote:
If you'd ever used FotoTouch for feathering edges, then you'd understand why I'm so inclined to say a resounding NO.
There's just NOTHING like using a slider to see the changes happen instantly. Until/unless GIMP can do that, I will be a GIMP user, but not a happy one. :gaah

Which version of Gimp are you using?
Gimp 2.8 when Feather edges is checked, a Radius slider is displayed.
There are two methods, the upwards arrow pointer in the top half of the slider area and the horizontal two-way arrow pointer in the lower half of the slider area explained here, 1.4. Tool Options.

Image

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 6:36 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Menu item 'Feathered paste' won't appear in my edit menu using file below has anyone using windows have this file working

#! /usr/bin/env python
# coding: utf-8

# """
# PLUG-in for gimp 2.8 and 2.9
# (might work with previous versions)
#
# Allows one to paste the contents of the
# clipboard in an image with its contents
# feathered from the border.
#
# The ammoutn of feathreing is selected interactively
# during the Plug-in execution, in a call to
# the Gaussian Blur plug-in.
#
# WHen the Gaussian blur dialog pops-up, one is free
# to select the pasted temporary layer
# on the Layers dialog and move it around to the
# desired location.



# """

from gimpfu import *

def feathered_paste(img, layer):
    pdb.gimp_image_undo_group_start(img)
    sel = pdb.gimp_edit_paste(layer, False)
    pdb.gimp_floating_sel_to_layer(sel)
    pdb.gimp_layer_resize_to_image_size(sel)
    mask = pdb.gimp_layer_create_mask(sel, ADD_ALPHA_TRANSFER_MASK)
    pdb.gimp_layer_add_mask(sel, mask)
    pdb.gimp_displays_flush()
    # this should be a call to the
    # gegl plug-in to allow for on-screen preview
    pdb.plug_in_gauss(img, mask, 40, 40, 1, run_mode=False)

    # level the mask so that it actually is 0 at the pasted image border
    # (else it will be more like

    pdb.gimp_levels(mask, HISTOGRAM_VALUE,
                    128, 255, # input levels
                    1, #gamma - applying a high gaussian blur and haking
                       # a way to see this gamma on screen would be nice
                    0, 255 # output levels
                   )
    # one might prefer to comment the line bellow and remaing with the
    # pasted selection in a separate layer:
    pdb.gimp_image_merge_down(img, sel, EXPAND_AS_NECESSARY)
    pdb.gimp_image_undo_group_end(img)

register(
     "feather_paste",
     "Feathered paste",
     "Allows one to feather a pasted object "
     "borders before commiting to the image",
     "João S. O. Bueno",
     "Creative Commons v 3.0 attribution required",
     " 2013",
     "Feathered paste",
    "*",
     [
        (PF_IMAGE, "img", "Input image", None),
        (PF_DRAWABLE, "layer", "Input layer", None)
     ],
     [],
     feathered_paste,
     menu="<Image>/Edit"
    )

main()

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sat Jan 18, 2014 10:51 pm  (#11) 
Offline
GimpChat Member

Joined: Jan 18, 2014
Posts: 5
Welcome to the club. I have yet to find it in the Edit menu.

Graechan wrote:
Menu item 'Feathered paste' won't appear in my edit menu using file below has anyone using windows have this file working



Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 12:36 am  (#12) 
Offline
GimpChat Member

Joined: Jan 18, 2014
Posts: 5
Thanks for the welcome. Yes, I knew about that feather option. Unfortunately, it seems that if I don't like the amount of feathering, I have to undo and start over. A preview in real time is what I'm really after.


GnuTux wrote:
SirCrow wrote:
All I really want is to easily feather the edges of selections, ideally with a slider

Greetings and welcome to GIMP Chat.

The selection tools in GIMP have a feather option.

[ Image ]

As with most software packages, there is somewhat of a learning curve involved in navigating GIMP.


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 2:23 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Graechan wrote:
Menu item 'Feathered paste' won't appear in my edit menu using file below has anyone using windows have this file working

#! /usr/bin/env python
# coding: utf-8

# """
# PLUG-in for gimp 2.8 and 2.9
# (might work with previous versions)
#
# Allows one to paste the contents of the
# clipboard in an image with its contents
# feathered from the border.
#
# The ammoutn of feathreing is selected interactively
# during the Plug-in execution, in a call to
# the Gaussian Blur plug-in.
#
# WHen the Gaussian blur dialog pops-up, one is free
# to select the pasted temporary layer
# on the Layers dialog and move it around to the
# desired location.



# """

from gimpfu import *

def feathered_paste(img, layer):
    pdb.gimp_image_undo_group_start(img)
    sel = pdb.gimp_edit_paste(layer, False)
    pdb.gimp_floating_sel_to_layer(sel)
    pdb.gimp_layer_resize_to_image_size(sel)
    mask = pdb.gimp_layer_create_mask(sel, ADD_ALPHA_TRANSFER_MASK)
    pdb.gimp_layer_add_mask(sel, mask)
    pdb.gimp_displays_flush()
    # this should be a call to the
    # gegl plug-in to allow for on-screen preview
    pdb.plug_in_gauss(img, mask, 40, 40, 1, run_mode=False)

    # level the mask so that it actually is 0 at the pasted image border
    # (else it will be more like

    pdb.gimp_levels(mask, HISTOGRAM_VALUE,
                    128, 255, # input levels
                    1, #gamma - applying a high gaussian blur and haking
                       # a way to see this gamma on screen would be nice
                    0, 255 # output levels
                   )
    # one might prefer to comment the line bellow and remaing with the
    # pasted selection in a separate layer:
    pdb.gimp_image_merge_down(img, sel, EXPAND_AS_NECESSARY)
    pdb.gimp_image_undo_group_end(img)

register(
     "feather_paste",
     "Feathered paste",
     "Allows one to feather a pasted object "
     "borders before commiting to the image",
     "João S. O. Bueno",
     "Creative Commons v 3.0 attribution required",
     " 2013",
     "Feathered paste",
    "*",
     [
        (PF_IMAGE, "img", "Input image", None),
        (PF_DRAWABLE, "layer", "Input layer", None)
     ],
     [],
     feathered_paste,
     menu="<Image>/Edit"
    )

main()


Graechan, by refreshing the scripts you get the following error:
Error while loading C:\Users\User\.gimp-2.8\scripts\single script-Feathered Paste.scm:

Error: (C:\Users\User\.gimp-2.8\scripts\single script-Feathered Paste.scm : 2) undefined sharp expression

maybe you know how to fix it

_________________
"Where am I ?"


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 2:35 am  (#14) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
The file is a python file and should have a .py extn and be installed in plugins
I was hoping someone with python experience could explain what's wrong

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 3:42 am  (#15) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
Obviously it does work, at least in certain circumstances. See earlier post
or http://www.youtube.com/watch?v=7sz7BZ9C9GA&hd=1

This is in a win7 32 bit with Gimp 2.8.10 so it could be a 64 bit issue,

AFAIK the OP is using Vista, so a good chance of being 32 bit, but who knows.

I would not spend too much time on this, very obvious that nothing is going to satisfy the OP

_________________
Image


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 4:17 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Graechan wrote:
The file is a python file and should have a .py extn and be installed in plugins
I was hoping someone with python experience could explain what's wrong


Ya, Graechan, sorry, it was my BIG fault.
I was in a hurry this morning.
I'll try as a python now.

_________________
"Where am I ?"


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 4:22 am  (#17) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
To solve this puzzle I've done some investigations...

In the Preliminary investigations seem to show that it's a non-ascii character in the Author's name that is causing the problem - ã

BUT this is only when I save the version that Graechan pasted above. If I simply save the directly downloaded original it works correctly (and the offending character is represented by two different characters)

And it works if I save Graechan's code as UTF-8 encoded rather than as ANSI encoded.

Kevin

Note: By "directly downloaded" I mean right click on this link https://raw.github.com/jsbueno/gimp-plu ... r_paste.py and select "Save Link as" (or whatever is the equivalent in your browser).

If you just click on the link and view the code your browser, then copy and paste it into a text editor and save it from there, you will get the invalid character (unless you can save it as UTF-8 encoded)


Last edited by paynekj on Sun Jan 19, 2014 4:31 am, edited 1 time in total.

Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 4:30 am  (#18) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
The script appears to work as advertised (tested on Fedora 20 x64). It calls the gauss blur filter interactively, which displays a preview of the edge blur mask before it's actually pasted. It doesn't actually display a preview of the cut/copied image, only the mask. I guess it's better than nothing, though. It shows up on the menu Edit/Feather Paste.

Image

As with all python plug-ins, it should be copied to the plug-ins folder and ensure it's permissions are set to executable. This one could be duplicated in scheme, without much trouble.


Attachments:
File comment: Feather Paste
feather_paste.py.zip [1.12 KiB]
Downloaded 56 times

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill
Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 5:05 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I agree with Paynekj:
- change João in simply J.
and the plug-in shows up

_________________
"Where am I ?"


Top
 Post subject: Re: Can't Find "feather_paste.py" in my UI
PostPosted: Sun Jan 19, 2014 5:38 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14728
Location: USA
I know the plugin was written for the GIMP-2.7, and GIMP-2.8 API's but it will show in the Edit menu in GIMP-2.6.12-2 but simply will not execute. :)

Thanks for the fix Kevin and Tux.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 51 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Shrink Grow Feather Selection with LIVE PREVIEW

43

No new posts Attachment(s) Feather in gimp gives unwanted lines in picture - SOLVED

9

No new posts copy/paste photos disappear when moved.

9

No new posts Quick Doogle to Cut and Paste - Collage Maker

2

No new posts How to resize image after "paste into selection"?

2



* Login  



Powered by phpBB3 © phpBB Group