Post Reply 

Macro to Scale then Round Corners?

Jan 10, 2012, 20:12
Post: #1
Macro to Scale then Round Corners?
I'm looking to use script-fu to automate a process I do at work.

What I do is find images, paste them into GIMP, scale them down, and round the corners.

I've been playing around with script fu to make it automatically scale the image and round the corners, but I've run into problems with the image variable needing to be changed each time something is pasted.

Is there a way I can automate this, perhaps some code that will set the image variable to whatever the current window is, or am I stuck doing "manual labor"?
Thanks!
Find all posts by this user
Quote this message in a reply
Jan 10, 2012, 21:18
Post: #2
RE: Macro to Scale then Round Corners?
(Jan 10, 2012 20:58)ofnuts Wrote:  When the usual script is started, it receives two variables, the current image, and the active drawable (usually a layer).

My script looks something like this:
(gimp-image-scale x 104 91)(script-fu-round-corners TRUE x 10 10 FALSE 8 8 15 FALSE FALSE)

Where x=image variable. If I set it to a number, it gives me an error if the current image is not the same as the image number in the script. If I leave it blank, it gives me an error saying that I need to put something there. Is there a variable I can use there to that it references whatever is currently open?
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Scaling layer does not scale alpha! WallyZ 1 197 Apr 3, 2018 06:22
Last Post: blighty
  how to draw to scale Tropdoug 1 181 Jan 15, 2018 07:03
Last Post: ythgilb
  round corners of rectangle BenjaminGer 3 388 Aug 21, 2017 06:01
Last Post: ythgilb
  Scale Image won’t show inches properly pixelated 4 1,851 Sep 18, 2014 18:47
Last Post: Mark Pigott
  PRINT SIZE and SCALE and Printing... TWK 2 634 Aug 21, 2014 18:09
Last Post: TWK

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS