A Photography forum. PhotoBanter.com

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PhotoBanter.com forum » Digital Photography » Digital Photography
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Can "The GIMP" freeware be scripted on Linux to do simpleoperations?



 
 
Thread Tools Display Modes
  #1  
Old March 27th 13, 06:24 PM posted to alt.comp.freeware,rec.photo.digital
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

I frequently operate on a picture, using the same sequence in The GIMP on Linux.
Is it possible to script these actions?

$ gimp pic1.jpg
-----
[GIMP]Filters-Map-Illusion-OK
[GIMP]File-Save As-pic2.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
[GIMP]Filters-Artistic-Oilify-OK
[GIMP]File-Save As-pic3.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
Filters-Decor-Old Photo-OK
[GIMP]File-Save As-pic4.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
[GIMP]Filters-Edge Detect-Difference of Gaussians-OK-
[GIMP]File-Save As-pic5.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
etc.

The goal would be to run the script on a photo, resulting in
the five files shown above.

Any idea how to script The Gimp on Linux?
  #2  
Old March 27th 13, 07:18 PM posted to alt.comp.freeware,rec.photo.digital
p-0''0-h the cat (ES)
external usenet poster
 
Posts: 12
Default Can "The GIMP" freeware be scripted on Linux to do simple operations?

On Wed, 27 Mar 2013 18:24:13 +0000 (UTC), "Danny D."
wrote:

I frequently operate on a picture, using the same sequence in The GIMP on Linux.
Is it possible to script these actions?

$ gimp pic1.jpg
-----
[GIMP]Filters-Map-Illusion-OK
[GIMP]File-Save As-pic2.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
[GIMP]Filters-Artistic-Oilify-OK
[GIMP]File-Save As-pic3.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
Filters-Decor-Old Photo-OK
[GIMP]File-Save As-pic4.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
[GIMP]Filters-Edge Detect-Difference of Gaussians-OK-
[GIMP]File-Save As-pic5.jpg-Save-Save
[GIMP]Edit-Undo the last operation
-----
etc.

The goal would be to run the script on a photo, resulting in
the five files shown above.

Any idea how to script The Gimp on Linux?


Script-Fu is the magic word I think.

http://docs.gimp.org/2.6/en/gimp-con...script-fu.html

--
p-0.0-h the cat

Attention new posters. Bewa ACF is under attack by a small number of
trolls who post false and misleading replies to questions here, and run
campaigns of lies against some of the long term regulars in order to get
them killfiled.

These are my recommendations to filter their malicious trollspam

By filtering out messages containing
q34wsk20-at-yahoo.com AND in the "From:" header
and messages containing "ccountrynet" in the path statement you will knock
out more than half or even three quarters of the trollspamming in this group.

I also recommend filtering all crossposts, anonymous remailers, and any
posts with these providers in the path:

eternal-september.org
dotsrc.org
ccountrynet especially this one
individual.net
easynews.com
anonymous
  #3  
Old March 28th 13, 02:10 PM posted to alt.comp.freeware,rec.photo.digital
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Wed, 27 Mar 2013 19:18:16 +0000 p-0''0-h the cat (ES) wrote:
I frequently operate on a picture, using the same sequence
Is it possible to script these actions?


Script-Fu is the magic word I think.
http://docs.gimp.org/2.6/en/gimp-con...script-fu.html


Ah. I see. Script-Fu is installed by default, so I'll use that.

I'll dig about to see HOW to simply make the Script-Fu get
spit out as a log file of my actions.

I can then just re-run that log file (or so the theory goes).

I'll report back when/if I figure it out, so that others can
more easily follow in my footsteps.

  #4  
Old March 28th 13, 02:20 PM posted to alt.comp.freeware,rec.photo.digital
p-0''0-h the cat (ES)
external usenet poster
 
Posts: 12
Default Can "The GIMP" freeware be scripted on Linux to do simple operations?

On Thu, 28 Mar 2013 14:10:05 +0000 (UTC), "Danny D."
wrote:

On Wed, 27 Mar 2013 19:18:16 +0000 p-0''0-h the cat (ES) wrote:
I frequently operate on a picture, using the same sequence
Is it possible to script these actions?


Script-Fu is the magic word I think.
http://docs.gimp.org/2.6/en/gimp-con...script-fu.html


Ah. I see. Script-Fu is installed by default, so I'll use that.

I'll dig about to see HOW to simply make the Script-Fu get
spit out as a log file of my actions.

I can then just re-run that log file (or so the theory goes).

I'll report back when/if I figure it out, so that others can
more easily follow in my footsteps.


Thanks. I'd be interested to see that.

--
p-0.0-h the cat

Attention new posters. Bewa ACF is under attack by a small number of
trolls who post false and misleading replies to questions here, and run
campaigns of lies against some of the long term regulars in order to get
them killfiled.

These are my recommendations to filter their malicious trollspam

By filtering out messages containing
q34wsk20-at-yahoo.com AND in the "From:" header
and messages containing "ccountrynet" in the path statement you will knock
out more than half or even three quarters of the trollspamming in this group.

I also recommend filtering all crossposts, anonymous remailers, and any
posts with these providers in the path:

eternal-september.org
dotsrc.org
ccountrynet especially this one
individual.net
easynews.com
anonymous
  #5  
Old March 28th 13, 03:27 PM posted to alt.comp.freeware,rec.photo.digital
Dave
external usenet poster
 
Posts: 73
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 14:10:05 +0000, Danny D. wrote:

On Wed, 27 Mar 2013 19:18:16 +0000 p-0''0-h the cat (ES) wrote:
I frequently operate on a picture, using the same sequence
Is it possible to script these actions?


Script-Fu is the magic word I think.
http://docs.gimp.org/2.6/en/gimp-con...script-fu.html


Ah. I see. Script-Fu is installed by default, so I'll use that.

I'll dig about to see HOW to simply make the Script-Fu get
spit out as a log file of my actions.

I can then just re-run that log file (or so the theory goes).

I'll report back when/if I figure it out, so that others can
more easily follow in my footsteps.


Might take a look at GimpScripter too.It generates Python code for plugins.
http://registry.gimp.org/node/25305

I haven't played with it much yet but it seems like a nice idea.

Dave

--
Registered Linux User #444770
Fedora
  #6  
Old March 28th 13, 04:13 PM posted to alt.comp.freeware,rec.photo.digital
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 14:20:03 +0000 p-0''0-h the cat (ES) wrote:

I'll report back when/if I figure it out, so that others can
more easily follow in my footsteps.


Thanks. I'd be interested to see that.


Quick update:

Unfortunately, GIMP doesn't have a native "log file" mode
where GIMP can record scripts as ready-made "macros":
https://bugzilla.gnome.org/show_bug.cgi?id=51937

But, there does appear to be a 3rd-party macro recorder:
http://registry.gimp.org/node/25305

And, GIMP does seem to have a batch mode:
http://www.gimp.org/tutorials/Basic_Batch/

So, I'll try some of these (script-fu, GimpScripter, gimp -i -b,
etc.) and report back.

  #7  
Old March 28th 13, 04:41 PM posted to alt.comp.freeware,rec.photo.digital,alt.os.linux
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 15:27:06 +0000 Dave wrote:

Might take a look at GimpScripter too.It generates Python code for plugins.
http://registry.gimp.org/node/25305


This is what I will try first, although the comments on that web
page (and others) say GimpScripter is clearly NOT a macro recorder.
http://registry.gimp.org/node/25305
http://gimp.linux.pl/index.php/serve...ZGUvMjUzMDU%3D

They say GimpScripter is a plugin authoring tool (whatever that means).
http://www.gimpusers.com/forums/gimp...beta-prototype

That having been said, those web pages don't seem to 'contain' any
GimpScripter code though. So, googling, I found this source:
https://github.com/bootchk/gimpscripter

But, of that source, I could only download the main plugin python script.
I could not (yet) find a download for the directory named "gimpscripter".

$ wget https://raw.github.com/bootchk/gimps...impscripter.py
$ cp -r gimpscripter ~/.gimp-2.6/plug-ins
$ cp plugin-gimpscripter.py ~/.gimp-2.6/plug-ins
$ chmod +x ~/.gimp-2.6/plug-ins/plugin-gimpscripter.py

So, at the moment, I'm looking for HOW we're supposed to download the
directory named "gimpscripter" at that location.

  #8  
Old March 28th 13, 04:45 PM posted to alt.comp.freeware,rec.photo.digital,alt.os.linux
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 16:41:59 +0000 Danny D. wrote:

So, at the moment, I'm looking for HOW we're supposed to download the
directory named "gimpscripter" at that location.


According to this web page:
http://www.gimpchat.com/viewtopic.php?f=9&t=4210

The "gimpscripter" repository is 'supposed' to be he
https://github.com/bootchk/gimpscripter/archives/master

But, it's not there.

  #9  
Old March 28th 13, 04:49 PM posted to alt.comp.freeware,rec.photo.digital,alt.os.linux
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 16:41:59 +0000 Danny D. wrote:

$ wget https://raw.github.com/bootchk/gimps...impscripter.py
$ cp -r gimpscripter ~/.gimp-2.6/plug-ins
$ cp plugin-gimpscripter.py ~/.gimp-2.6/plug-ins
$ chmod +x ~/.gimp-2.6/plug-ins/plugin-gimpscripter.py

So, at the moment, I'm looking for HOW we're supposed to download the
directory named "gimpscripter" at that location.


This failed to download the gimpscripter directory (due to robot restrictions):
$ wget -r --no-parent https://github.com/bootchk/gimpscrip...r/gimpscripter

  #10  
Old March 28th 13, 05:06 PM posted to alt.comp.freeware,rec.photo.digital,alt.os.linux
Danny D.[_4_]
external usenet poster
 
Posts: 81
Default Can "The GIMP" freeware be scripted on Linux to do simpleoperations?

On Thu, 28 Mar 2013 16:49:08 +0000 Danny D. wrote:

This failed to download the gimpscripter directory (due to robot restrictions):
$ wget -r --no-parent https://github.com/bootchk/gimpscrip...r/gimpscripter


Well, it's a dumb way to do anything, but I used this manual sequence to
download the gimpscripter directory, which others can use (or improve):

$ wget https://raw.github.com/bootchk/gimps...impscripter.py
$ cp plugin-gimpscripter.py ~/.gimp-2.6/plug-ins
$ chmod +x ~/.gimp-2.6/plug-ins/plugin-gimpscripter.py
....
$ mkdir -p gimpscripter/{gui,mockmenu}
$ cd ./gimpscripter/gui
$ wget https://github.com/bootchk/gimpscrip...ui/__init__.py
$ wget https://github.com/bootchk/gimpscrip...scripter.glade
$ wget https://github.com/bootchk/gimpscrip...ui/main_gui.py
$ wget https://github.com/bootchk/gimpscrip...aram_dialog.py
$ wget https://github.com/bootchk/gimpscrip...ram_widgets.py
....
$ cd ../mockmenu
$ wget https://github.com/bootchk/gimpscrip...b_treemodel.py
$ wget https://github.com/bootchk/gimpscrip...nu/__init__.py
$ wget https://github.com/bootchk/gimpscrip..._procedures.py
$ wget https://github.com/bootchk/gimpscrip...h_treemodel.py
$ wget https://github.com/bootchk/gimpscrip...nu/plugindb.py
....
$ cd ..
$ cp -r gimpscripter ~/.gimp-2.6/plug-ins

At this point, I 'think' I have gimpscripter installed.
Now it's time to figure out how to use it.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[linux] Is there some "Perfectly Clear" alternative in the opensource world? Wolfgang Weisselberg Digital Photography 18 October 7th 11 08:51 PM
Drawing circles, boxes, and arrows in "The Gimp" freeware (onLinux) jm Digital Photography 32 September 6th 10 12:23 AM
"Corset-Boi" Bob "Lionel Lauer" Larter has grown a "pair" and returned to AUK................ \The Great One\ Digital Photography 0 July 14th 09 12:04 AM
applying same "levels" correction to multiple images with GIMP [email protected] Digital Photography 2 April 2nd 08 05:59 PM
"The Gimp" and its plugins? RolandRB Medium Format Photography Equipment 36 February 9th 07 12:35 AM


All times are GMT +1. The time now is 10:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PhotoBanter.com.
The comments are property of their posters.