Post Reply 

Bashing my head - Batch Python Script

Sep 5, 2014, 00:38
Post: #1
Bashing my head - Batch Python Script
I'm Back...
As a few of you know, I've been trying to get an icon batch processing script to work. ImageMagic has been mentioned, but I'll admit stubbonrnly, I've kept down the path of python-fu. So here is my question(s)

In my script, with the help of Ofnuts, have gotten it to select the layers, perform the actions I need, and even save the image (if I run the script from inside GIMP). My problems now are:
1) running from command line. The console throws an error "Error: ( : 1) eval: unbound variable: image" so Im sure I have something incorrect in my command line entry. This is included in the header of my script for reference. Can anyone help solve this problem
2) As noted above, the save PNG works if I run it inside GIMP, but it puts the image in my /home directory, not in the image source directiory. I would prefer to put it in ./out_png/*.png in my imae source.

Thanks again for helping a super noob. The script is attached along with a sample .xcf

Attached File(s)
.txt  my_icon_batch.txt (Size: 1.67 KB / Downloads: 39)
.xcf  apps_buffer.xcf (Size: 35.51 KB / Downloads: 19)
Find all posts by this user
Quote this message in a reply
Sep 5, 2014, 00:58
Post: #2
RE: Bashing my head - Batch Python Script
(Sep 5, 2014 00:43)ofnuts Wrote:  A sample script, together with the Windows and Linux shell commands to start it:

Thank you! I'll see what I can do with that. Might take a bit still to wrap my non-coding brain around it.
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to modify this script-fu? Zakary81 1 31 Yesterday 12:48
Last Post: paynekj
  Batch create images from array edmilner 1 147 Jul 17, 2017 16:41
Last Post: ythgilb
  Loading PythonFu Plugin: ImportError for .../python/ (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 126 Jul 11, 2017 07:26
Last Post: ythgilb
  How to close gimp with batch command? flixe 1 138 Jun 19, 2017 12:29
Last Post: ythgilb
  Need help in running a gui script-fu via command line eyalzek 2 227 Oct 4, 2014 14:05
Last Post: eyalzek

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS