Post Reply 

Transfer selection to other image

Jun 3, 2012, 22:09
Post: #1
Transfer selection to other image
Is it possible to transfer a selection between two images of the same exact canvas sizes without altering it's shape and relative position? My hypothesis is to copy the selection into a channel, then copy/paste the channel into the second image and then regenerate the selection. But traveling channels across images doesn't seem possible. Specifically I'm using script-fu, but a general hint is good anyway.
Find all posts by this user
Quote this message in a reply
Jun 3, 2012, 22:59
Post: #2
RE: Transfer selection to other image
Didn't try everything there:

- In source image create new temp layer filled with black
- Bucket fill selection with white (now all color channels look the same)
- gimp-channel-new-from-component with: target image, and any of the RGB channels
- remove temp layer
- On target image: gimp-image-add-channel
- gimp-selection-combine(channel, CHANNEL_OP_REPLACE)

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 4, 2012, 07:16
Post: #3
RE: Transfer selection to other image
That's a smart one! Among all the instructions, you exploit gimp-channel-new-from-component for its ability to bridge the two images. Strange however that Gimp doesn't provide a more intuitive way.
Find all posts by this user
Quote this message in a reply
Jun 4, 2012, 08:17
Post: #4
RE: Transfer selection to other image
(Jun 4, 2012 07:16)Davide Wrote:  That's a smart one! Among all the instructions, you exploit gimp-channel-new-from-component for its ability to bridge the two images.
That's the only one I could find, so the rest is built around it

(Jun 4, 2012 07:16)Davide Wrote:  Strange however that Gimp doesn't provide a more intuitive way.
Not so strange... a channel is really attached to an image (as you mentioned you cannot transfer it to an image which isn't exactly the same size). Transferring the selection between images is a bit contrived, it would have been a lot more "natural" to transfer the layers used to create it (or to bluntly duplicate the image and remove the unnecessary layers/channels).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Heal Selection / Resynthesizer Errors jitblass 1 150 Nov 7, 2017 13:56
Last Post: paynekj
  Any plugin for open multiple image in paint.net shinprog 1 327 Oct 31, 2017 11:38
Last Post: paynekj
  Scale image to specific size MattRothschild 1 216 Sep 15, 2017 11:13
Last Post: ythgilb
  Dividing and printing a large image RayArdia 1 155 Aug 9, 2017 07:22
Last Post: ythgilb
  Late binding / COM for opening an image into GIMP? i73 2 199 Aug 4, 2017 17:39
Last Post: i73

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS