It is currently Fri Nov 24, 2017 12:21 am

Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Simple script-fu to create new RGB image
PostPosted: Fri May 19, 2017 4:25 pm  (#1) 
GimpChat Member

Joined: May 10, 2017
Posts: 7
Hey there,

I've been experimenting with both Script-Fu and Python-Fu for a while now. I think I have a simple Script-Fu which allows the user to create a new RGB image, specifying the width and height (up to 4096px), the image depth (up to 1000), and the foreground and background colors from a single GUI. It adds a single layer filled with the specified background color to the new image. The foreground and background colors are not returned to their prior states after the script has run.

The script works with Gimp 2.8.8/Windows 10. The linefeeds are terminated with CR+LF, so they may need to be converted before running on a Mac or *nix machine.

Once installed, the script is found at File > Create > New RGB image > Make new RGB image.

Please download it and give it a try; I'd like to know if it works for others. Please let me know your Gimp version, OS and OS version, and whether you had to convert the linefeeds and/or do anything else before it worked for you (or if it didn't work). Also, let me know whether the script might be of practical use to anyone or if it's just a proof-of-concept thing. Suggested improvements are also welcome if it might be useful.


script-fu-make-new-RGB-image.scm [2.26 KiB]
Downloaded 34 times
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
 Post subject: Re: Simple script-fu to create new RGB image
PostPosted: Fri May 19, 2017 5:01 pm  (#2) 
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 3696
OK for a first shot at scripting, but ask yourself a question: what does it do significantly better than the dialog in File>New (and its advanced options).

AFAIK there is no CR/CRLF problems with Script files.


Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]

   Similar Topics   Replies 
No new posts Create Simple Frame Script for GIMP


No new posts Attachment(s) Simple script to create RGB layers of the active layer.


No new posts Need help creating a simple image


No new posts Attachment(s) Add Guides In Range (.py script). Super simple script


No new posts Attachment(s) How to create image like this ?


* Login  

Powered by phpBB3 © phpBB Group