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: 69)
.xcf  apps_buffer.xcf (Size: 35.51 KB / Downloads: 24)
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
  Request for script chlebna 1 171 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 229 Sep 4, 2017 08:51
Last Post: ythgilb
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 2 230 Aug 31, 2017 14:32
Last Post: Bertholomäus
  How to modify this script-fu? Zakary81 1 195 Aug 23, 2017 12:48
Last Post: paynekj
  Batch create images from array edmilner 1 287 Jul 17, 2017 16:41
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS