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: 157)
.xcf  apps_buffer.xcf (Size: 35.51 KB / Downloads: 37)
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
  Problems with a bat script :( ThaUnknown_ 1 354 Mar 26, 2018 21:14
Last Post: paynekj
  Script-fu ordered file list vnicent 1 191 Mar 19, 2018 17:33
Last Post: paynekj
  script-fu argument/parameter formats dhugg 2 310 Mar 13, 2018 00:50
Last Post: dhugg
  Request for script chlebna 1 480 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 533 Sep 4, 2017 08:51
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS