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

How do I get the current image filename and directory name in script-fu?

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

How do I get the current image filename and directory name in script-fu? Rob Frohne 30 Jan 19:33
  How do I get the current image filename and directory name in script-fu? Kevin Cozens 30 Jan 21:27
Rob Frohne
2011-01-30 19:33:54 UTC (almost 14 years ago)

How do I get the current image filename and directory name in script-fu?

Hi All,

I need to process multiple photos every day in the same way and am trying to minimize the effort needed by automating Gimp with Scrip-fu, which seems to be kind of limited. My plan was to save the files in specified folders and using incron (an inotify service) to open them in Gimp; do a manual perspective backward transformation by hand and start a script would, resize them and based on their filename and what directory they came from, save them to the correct folders for display on web pages.

I'm having difficulty figuring out how to get the filename and directory which the images came from. Does anyone have any tips?

Thanks,

Rob

Kevin Cozens
2011-01-30 21:27:28 UTC (almost 14 years ago)

How do I get the current image filename and directory name in script-fu?

Rob Frohne wrote:

I'm having difficulty figuring out how to get the filename and directory which the images came from. Does anyone have any tips?

If you look at the Procedure Browser, you will find the following: (gimp-image-get-filename image)

It returns the directory path and filename for the loaded file.