“Open file as mask” python script for GIMP 3

I rewrote my python script “Open file as mask” for Gimp 3.0. You can download it from the link below.

With this script you can use other image manipulation programs (like darktable, ImageJ, etc.) to create masks for GIMP, that have features that GIMP does not have.

How to use
Select the layer you want to add a mask to, open a grayscale or black and white image with this script, and easily load the file as a mask.

2 Likes

Off-topic but, in the screenshot, what are meant by “Saver As” and “Saver”? Are they different than “Save As” and “Save”?

I’m still on GIMP 2 …

https://docs.gimp.org/3.0/en/gimp-file-save-as.html

I asked about the ones in yellow, not green.

Sorry, I can’t read Python but it seems like 'Saver As" is different than the standard GIMP “Save As” which was left in place. I’m old and easily confused and find explanatory text helpful.

https://shallowsky.com/software/gimp-save/

Saver will show up in your File menu as Saver and Saver as…

It goes back to Gimp 2.8 times when Save and Export were, for very good reasons, split. This caused much controversy from users who thought Export was an unnecessary step.

That is where Saver comes in, exports, overwrites, no other warnings about saving in Gimp .xcf format.

Thanks for the explanatory text.

I’m in GIMP 2.10.34 and have long been accustomed to the difference between ‘save as’ and ‘export as’.

I have a little modified this script.

2 Likes

Saver sounds like a great idea. Two questions:

  1. Why does it export to a quarter-scale JPEG copy instead of full scale?
  2. Would you mind if I add some functionality to it?

Hi,

I have internationalized this plug-in (ver. 2.0). In this version, I provide following language translation files.

Català
Deutsch
Español
français
Italiano
Japanese
Korean
Magyar
Nederlands
Polski

Translation files are “locale” directory under this plug-in’s directory.

Even if your language is not included this list, you can easily make your language locale file. Throw “defaut.txt” in locale directory to online AI translation service, and save the result as [your language code].txt in locale directory. For example, you would like to add Vietnamese translation, save the result as vi.txt in locale directory. You can find the list of language code in [Edit] > [Preferences] > [Interface]>[Language].

And if you use Mac OS, please set your language explicitly in preferences and do not use system language setting. Otherwise my plug-in will be displayed in English.


With this script, you can easily use the result of S.M.A.R.T AI mask builder which was created by Alberto as mask also in GIMP3. This is very cool!