Post Reply 

Python gimpfu outside of gimp?

Mar 4, 2014, 20:37
Post: #1
Python gimpfu outside of gimp?
Hey,
So I need to change the palette on a bunch of files to a custom palette in gimp. After testing everything in the gimp python-fu terminal I wrote a short function to handle everything, however I cannot import gimpfu outside of the gimp python-fu terminal. I couldnt find a definitive answer online, and I couldnt find gimpfu.py on my computer. I don't need a plugin or anything like that, I just need to be able to feed in file names and have the edited files saved somewhere. Any help would be appreciated
Find all posts by this user
Quote this message in a reply
Mar 4, 2014, 20:51
Post: #2
RE: Python gimpfu outside of gimp?
You can very likely do the same thing with a shell script and ImageMagick.

Otherwise, gimpfu is just a "facade" over Gimp itself, it contains very little functionality of its own. So what you need to do is call Gimp in batch mode and have it call your script. Either you call Gimp once and your scripts churns over several files (directory, or explicit list) or the script call Gimp on every file (likely slower).

Hop over on this thread where I just posted a sample python script that processes several files as well as whatever is necessary to have it Gimp start it in batch mode.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 4, 2014, 21:13
Post: #3
RE: Python gimpfu outside of gimp?
(Mar 4, 2014 20:51)ofnuts Wrote:  You can very likely do the same thing with a shell script and ImageMagick.

Otherwise, gimpfu is just a "facade" over Gimp itself, it contains very little functionality of its own. So what you need to do is call Gimp in batch mode and have it call your script. Either you call Gimp once and your scripts churns over several files (directory, or explicit list) or the script call Gimp on every file (likely slower).

Hop over on this thread where I just posted a sample python script that processes several files as well as whatever is necessary to have it Gimp start it in batch mode.

Thanks, batch mode will work perfectly
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  plugin save for web in Gimp 2.9.6 Dkk 1 191 Oct 19, 2017 09:02
Last Post: paynekj
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 2 231 Aug 31, 2017 14:32
Last Post: Bertholomäus
  Late binding / COM for opening an image into GIMP? i73 2 199 Aug 4, 2017 17:39
Last Post: i73
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 315 Jul 11, 2017 07:26
Last Post: ythgilb
  How to close gimp with batch command? flixe 1 295 Jun 19, 2017 12:29
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS