Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
files missing after insta...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
5 minutes ago
» Replies: 2
» Views: 176
|
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: rich2005
Yesterday, 07:48 AM
» Replies: 1
» Views: 365
|
How do I uninstall GIMP 3...
Forum: Linux and other Unixen
Last Post: Ofnuts
Yesterday, 07:02 AM
» Replies: 1
» Views: 241
|
AI Gimp Plugins
Forum: Watercooler
Last Post: merlilderman
09-14-2025, 04:16 PM
» Replies: 21
» Views: 68,598
|
How to make a watermark o...
Forum: General questions
Last Post: kyolim
09-13-2025, 10:05 PM
» Replies: 5
» Views: 14,343
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
09-13-2025, 06:06 PM
» Replies: 1
» Views: 619
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
09-13-2025, 05:20 PM
» Replies: 2
» Views: 509
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
09-13-2025, 07:53 AM
» Replies: 15
» Views: 12,207
|
Photo play-time
Forum: Gallery
Last Post: Ofnuts
09-13-2025, 07:32 AM
» Replies: 24
» Views: 22,031
|
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 841
|
|
|
Transforming a selection on a layer |
Posted by: pdev - 08-07-2017, 10:11 PM - Forum: General questions
- Replies (4)
|
 |
Hi, I'm just switching to GIMP from Photoshop and can't seem to work out how to do something I did quite often in PS.
I had photographed a number of objects and one of them needed to be rotated. In PS I would select the object, copy it to a new layer (Cmd-J on my Mac), select the object on the layer with the Transform tool (Cmd-T) and then rotate it with the curly arrows in the corner.
I've managed to copy a selection to a new layer in GIMP (copy > paste > new layer) but can't work out how to rotate the selection independently of the base layer.
Any help would be greatly appreciated!
|
|
|
Skript for mirroring left and right side of portrait photo |
Posted by: Juniata - 08-07-2017, 03:35 PM - Forum: Extending the GIMP
- Replies (6)
|
 |
Hi everybody!
I am a total beginner to Script Fu, and am having a hard time finding good documentation. If anybody has some good general advice, it is very much welcome.
But here is my specific problem:
I would like to write a script which lets me automatically create two images out of one portrait picture: One from the left half of the face and its mirror image, one from the right side respectively. It is to show that a face is never completely symmetric.
In order to get familiar with it all, I have written a very humble script, which should create two copies of the image and flip one of them horizontally.
But already I encounter a problem: It seems to safe the pictures and layers and does not renew them if I apply the script to a new image. Only if I restart GIMP, it renews them. Could somebody please tell me, how I delete the buffer or tell it to overwrite the image/drawable?
And if someone could already tell me the names of the procedures to only copy and flip a selected part of an image and to insert it in a defined place of the new drawable, so I can already try a bit. At least I hope that procedures like this exist...
Thank you so much!
Cheers!
Kat
Here is my current script:
(define (script-fu-two-faces img drw)
(let* (
(drawable-width (car (gimp-drawable-width drw)))
(halfdrawable-width (* drawable-width 0.5))
(drawable-height (car (gimp-drawable-height drw)))
(leftimage (car (gimp-image-new drawable-width drawable-height RGB)))
(leftlayer (car (gimp-layer-new leftimage drawable-width drawable-height 0 "tfl" 100 0)))
(rightimage (car (gimp-image-new drawable-width drawable-height RGB)))
(rightlayer (car (gimp-layer-new rightimage drawable-width drawable-height 0 "tfr" 100 0)))
)
(gimp-image-insert-layer leftimage leftlayer 0 0)
(gimp-drawable-fill leftlayer WHITE-FILL)
(gimp-display-new leftimage)
(gimp-image-insert-layer rightimage rightlayer 0 0)
(gimp-drawable-fill rightlayer WHITE-FILL)
(gimp-display-new rightimage)
(gimp-edit-named-copy drw "tobepastedleft")
(gimp-edit-named-paste leftlayer "tobepastedleft" TRUE)
(gimp-displays-flush)
(gimp-item-transform-flip drw halfdrawable-width 0 halfdrawable-width drawable-height)
(gimp-edit-named-copy drw "tobepastedright")
(gimp-edit-named-paste rightlayer "tobepastedright" TRUE)
(gimp-displays-flush)
)
)
(script-fu-register "script-fu-two-faces"
"Two faces..."
"Creates an image from left side of the face"
"K.Imai"
"K.Imai"
"2017"
""
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable to apply" 0
)
(script-fu-menu-register "script-fu-two-faces" "<Image>")
|
|
|
|