RSS/Atom feed Twitter
Site is read-only, email is disabled

gimp scripting/automating howto

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

gimp scripting/automating howto jed mallen 01 Mar 02:21
  gimp scripting/automating howto Carol Spears 01 Mar 03:34
   gimp scripting/automating howto jomavebe 13 Jun 18:53
    gimp scripting/automating howto Alec Burgess 13 Jun 19:12
     gimp scripting/automating howto jomavebe 13 Jun 22:51
  gimp scripting/automating howto jomavebe 13 Jun 23:14
jed mallen
2006-03-01 02:21:15 UTC (almost 19 years ago)

gimp scripting/automating howto

Hello,

Can anyone recommend a nice howto on automating batch jobs on gimp (ie: resizing, border, etc.)?

Thanks!

-- Jed R. Mallen
GPG key ID: 81E575A3 fp: 4E1E CBA5 7E6A 2F8B 8756 660A E54C 39D6 81E5 75A3 http://jed.sitesled.com

Carol Spears
2006-03-01 03:34:35 UTC (almost 19 years ago)

gimp scripting/automating howto

On Wed, Mar 01, 2006 at 09:21:15AM +0800, jed mallen wrote:

Hello,

Can anyone recommend a nice howto on automating batch jobs on gimp (ie: resizing, border, etc.)?

i have put some stuff on my site. the old (gimp-2.0-2.2) stuff should be at http://carol.gimp.org/gimp2/resources/python/ and stuff that is not guarrenteed to work on gimps older than about gimp-2.3.5 (but might) at http://carol.gimp.org/gimp/scripting/

i dunno the reason these don't show up in search engines. maybe because i delete all that spam promising to up my ranking....

let me know if you need some more help or find something missing. most of the stuff there is in python. i tried to put examples there of things that are not so clearly scripted as using the gui would be (when completing the same tasks. there is no way that i could have written anything functional with gimp-python without the excellent resource located at http://docs.python.org/lib/lib.html

i have found it easier to learn it by seeing example scripts. what is not there is probably found in the gimp sources. the python whirl and pinch plug-in that comes with gimp-python -- i saw actual astonishment from one of gimps more notorious scripters. that respectful kind of astonishment, even.

carol

2009-06-13 18:53:17 UTC (over 15 years ago)
postings
3

gimp scripting/automating howto

I had a look at
at http://carol.gimp.org/gimp/scripting/ and found the python-fu-batch-resize interesting.

but how do I make it work for gimp2.6 in windows (XP sp3)?

- sofar this is the only .py file I have

- there is no folder Xtns and no such menu item. "It should install as "python_fu_batch_resize" in /Xtns/Batch/Resize"

so where do i put the file and to a start it from within gimp 2.6?

Alec Burgess
2009-06-13 19:12:31 UTC (over 15 years ago)

gimp scripting/automating howto

jomavebe (forums@gimpusers.com) wrote (in part) (on 2009-06-13 at 12:53):

I had a look at at http://carol.gimp.org/gimp/scripting/ and found the python-fu-batch-resize interesting. but how do I make it work for gimp2.6 in windows (XP sp3)? - sofar this is the only .py file I have - there is no folder Xtns and no such menu item. "It should install as "python_fu_batch_resize" in /Xtns/Batch/Resize" so where do i put the file and to a start it from within gimp 2.6?

Googling [gimp python windows 2.6] gets a number of hits. This looks like a pretty good one:
http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows.html

2009-06-13 22:51:19 UTC (over 15 years ago)
postings
3

gimp scripting/automating howto

This looks like a pretty good one: http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows.html

the instructions worked like a charm thanks!

but now I have to figure out how to work with Carol's batch-resize script.

http://carol.gimp.org/gimp/scripting/

in the version of "batch-resize" I have it does not seem possible to select a folder.
the dialogue only says open,
no option to choose, unless it is file. same with the target folder

so to run the the process both origin and target is file rather than a folder.
this just ends up with a error message: WindowsError: [Error 267] The directory name is invalid: 'C:\\FOLDERS\\P1230003.JPG/*.*'

in which FOLDERS is lots of folders, some with spaces in the names

more info: Traceback (most recent call last):
File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 692, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP-2.0\lib\gimp\2.0\python\gimpfu.py", line 353, in run_script
return apply(function, params)
File "C:\Program
Files\GIMP-2.0\lib\gimp\2.0\plug-ins\python-fu-batch-resize.py", line 62, in python_fu_batch_resize
images = get_images(original_type, original_location) File "C:\Program
Files\GIMP-2.0\lib\gimp\2.0\plug-ins\python-fu-batch-resize.py", line 25, in get_images
for filename in os.listdir(original_location): WindowsError: [Error 267] The directory name is invalid: 'C:\\FOLDERS\\P1230003.JPG/*.*'

2009-06-13 23:14:44 UTC (over 15 years ago)
postings
3

gimp scripting/automating howto

Hello,

Can anyone recommend a nice howto on automating batch jobs on gimp (ie: resizing, border, etc.)?

I just tried David's Batch Processor: http://members.ozemail.com.au/~hodsond/dbp.html

the windows version is quick, has lots of settings.

can also be used to change colours, sharpen and blur be careful to go through all the tabs so that you do not miss any settings!