Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,346
» Latest member: maxcoolzero
» Forum threads: 1,255
» Forum posts: 6,949

Full Statistics

Latest Threads
Cleaning up microfilm, mi...
Forum: General questions
Last Post: kirbywan
1 hour ago
» Replies: 0
» Views: 12
GIMP keyboard shortcuts (...
Forum: Installation and usage
Last Post: unknown7
2 hours ago
» Replies: 0
» Views: 14
how to change my username...
Forum: Gimp-Forum.net
Last Post: unknown7
3 hours ago
» Replies: 0
» Views: 20
Heal & Clone Tool
Forum: OSX
Last Post: rich2005
4 hours ago
» Replies: 2
» Views: 36
Almost a Super Moon
Forum: Other graphics software
Last Post: maxcoolzero
6 hours ago
» Replies: 7
» Views: 1,325
Toolbox at the top, not v...
Forum: Installation and usage
Last Post: Cheva
9 hours ago
» Replies: 2
» Views: 51
XCF save file too big (er...
Forum: General questions
Last Post: margimp
Yesterday, 08:43 PM
» Replies: 5
» Views: 218
Virtual Drafting Compass
Forum: General questions
Last Post: Quartz66
Yesterday, 07:26 PM
» Replies: 8
» Views: 351
Increase tool icon size
Forum: Gimp 2.9.x
Last Post: Kevin
Yesterday, 02:10 PM
» Replies: 1
» Views: 48
Gimp 2.8 / 2.9 for linux ...
Forum: Gimp 2.9.x
Last Post: Xxxx
Yesterday, 10:04 AM
» Replies: 3
» Views: 171

 
  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>")

Print this item

  How can i make a picture like this?
Posted by: Rollie - 08-06-2017, 11:42 AM - Forum: General questions - Replies (6)

I already have a clothing picture but its the design and lighting around it that i can't seem to create. If anyone has any idea i'd greatly appreciate it.



Attached Files Image(s)
   
Print this item

Smile Sketch
Posted by: SenlinOS - 08-06-2017, 10:37 AM - Forum: Gallery - Replies (2)

GIMP 2.9.5
   

Print this item

  Gimp 2.9.5 and RAW files
Posted by: rich2005 - 08-06-2017, 09:03 AM - Forum: Gimp 2.9.x - No Replies

Ouch...

   

Although I do not take many RAW photographs, I do like the NuFraw Gimp plugin, which works (for me). No longer it seems.

Not keen on Darktable which tries to take over everything. RawTherapee is good, I could go that way. Fortunately the standalone NuFraw works, not quite as convenient as the plugin but fires off a 16 bit image into Gimp 2.9.5. Just need to set up the correct path in NuFraw configuration.

Print this item

  Creating heightmap
Posted by: grit - 08-05-2017, 05:39 PM - Forum: General questions - Replies (4)

When creating heightmap I need that central black areas become sharpened black and central white areas sharpened white. Between black and white areas there shold be a soft grey falloff so that I got smooth transitions.

Gaussian blur does smooth falloff but it dilutes black and white areas into grey.
Is there a way to maintain B & W and get smooth grey falloff in between B & W? 
I tried G'MIC varois smooth options but didn't get what I want.



Attached Files Thumbnail(s)
   
Print this item

  Gimp and Gimp-Edge PPAs are moving
Posted by: Ofnuts - 08-04-2017, 09:29 PM - Forum: Linux and other Unixen - Replies (2)

People that use Gimp under Ubuntu can add a PPA to their software sources, so that Gimp is updated from it instead of being non-updated from the repos. The people behind the PPA have sent a notice that the PPA is moving:


Quote:We're moving!

Old addresses: https://launchpad.net/~otto-kesselgulasch/gimp and https://launchpad.net/~otto-kesselgulasch/gimp-edge

New addresses: https://launchpad.net/~otto-meier/gimp and https://launchpad.net/~otto-meier/gimp-edge

You are welcome in order to build the best Gimp stack packages ever.

Print this item

  Late binding / COM for opening an image into GIMP?
Posted by: i73 - 08-04-2017, 05:41 PM - Forum: Extending the GIMP - Replies (3)

Hey guys, I'm looking for a way to use .net to open up a application in Gimp,

Something like:


Code:
dynamic app= Activator.CreateInstance(Type.GetTypeFromProgID("Gimp.Application", true));
app.Load("D:\a.png");

Print this item

  Repeating block shape
Posted by: grit - 08-04-2017, 12:06 PM - Forum: General questions - Replies (1)

I have drawn rectangle with border set to 5. I would like to draw  another one with the same border size. Is it possible to repeat it without going to border setting every time ?



Attached Files Thumbnail(s)
   
Print this item

  creating multiple sized images from one
Posted by: ntuck86 - 08-03-2017, 06:17 PM - Forum: General questions - Replies (2)

hi 

new here i am trying to find a way of resizing multiple png images of different sizes from one image
e.g.
28x28px
56X56px
112X112px

nathan

Print this item

  Cell block noise filter and other effects
Posted by: grit - 08-03-2017, 11:38 AM - Forum: General questions - Replies (9)

Is there a filter in GIMP to generate this:

[Image: render_blender-render_textures_procedura...-noise.jpg]

Print this item