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: 171)
.xcf  apps_buffer.xcf (Size: 35.51 KB / Downloads: 50)
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
  Run Deskew plugin from Python-Fu console ramonvaldezz 12 3,174 Nov 18, 2018 21:48
Last Post: paynekj
  Run script on action rchav 2 1,221 Aug 13, 2018 14:57
Last Post: rchav
  Script Fu Errors Gimp 2.10.4 lightsaber jd3481 1 795 Aug 2, 2018 05:13
Last Post: paynekj
  Script-fu script to conversion pdf to image 4ever 12 14,050 Jul 17, 2018 16:01
Last Post: paynekj
  Problems with a bat script :( ThaUnknown_ 1 615 Mar 26, 2018 21:14
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS