第2章 Starting GIMP

目次

1. GIMP を起動する
1.1. Changing the Language
1.2. コマンドラインでの変数一覧
1.3. Configuration Folders
1.4. Tips and Tricks

1. GIMP を起動する

Usually you start GIMP either by clicking GIMP's icon on your desktop (if available), selecting it from a menu, or by typing gimp on a command line. If you have multiple versions of GIMP installed, you may need to add the exact version number: gimp-2.99.

You can, if you want, provide a list of image file names on the command line after the program name so that GIMP automatically opens those files after it starts. It is also possible to open files from within GIMP once it is running using the Open Image Dialog.

Most operating systems support file associations, which associates a class of files (as determined by their filename extension, such as .jpg) with a corresponding application (such as GIMP). When image files are properly associated with GIMP, you can double click an image in your file browser to open it in GIMP.

If you installed the Flatpak version of GIMP from flathub.org, you start GIMP either by clicking an icon, or by typing flatpak run org.gimp.GIMP//stable on a command line.

1.1. Changing the Language

GIMP automatically detects and uses the system language. In the unlikely event that language detection fails, or if you want to use a different language, the easiest way is to change the language used in the Interface Preferences: EditPreferences, then go to the Interface section; Language can be set at the top.

If you prefer to change language by setting environment variables, you can use:

Linux など UNIX システム風のシステム

In LINUX: in console mode, type LANGUAGE=en gimp or LANG=en gimp replacing en with fr, de, etc. according to the language you want. Background: Using LANGUAGE=en sets an environment variable for the executed program gimp.

Under Windows

Control PanelSystemAdvancedEnvironment button in System Variables area: Add button: Enter LANG for Name and fr, de, etc. for Value. Watch out! You have to click OK three successive times to validate your choice.

If you change languages often, you can create a batch file to change the language. Open NotePad. Type the following commands (for French for instance):

set lang=fr
start gimp-2.99.exe

Save this file as GIMP-FR.BAT (or another name, but always with a .BAT extension). Create a shortcut and drag it to your desktop.

Under Apple macOS

From System Settings, click General in the sidebar. Then select Language & Region. The desired language should be the first in the list.

Another GIMP Instance

You can use command line parameter -n to run multiple instances of GIMP. For example, gimp-2.99 starts GIMP in the default system language, and LANGUAGE=en gimp-2.99 -n starts another instance of GIMP in English. This can be very useful for translators.

1.2. コマンドラインでの変数一覧

Although command line arguments are not required when starting GIMP, they can be useful in certain situations. On a Unix system, you can use man gimp for a complete list.

These arguments must be added to the command line that you use to start GIMP as gimp-2.99 [OPTION...] [FILE|URI...], where OPTION... can be one or more of the arguments listed below, followed by one or more file names.

-?, ,-h, --help

Display a list of all command line options.

--help-all

すべてのヘルプオプションを表示。

--help-gegl

Show all GEGL options.

--help-gtk

GTK+ のオプションを表示。

-v, --version

GIMP の版を表示して終了。

--license

利用許諾契約に関する情報を表示して終了。

--verbose

起動過程での詳細報告を表示。

-n, --new-instance

重ねて新たに GIMP を起動。

-a, --as-new

画像を新規で開く。

-i, --no-interface

ユーザーインターフェースなしで起動。

-d, --no-data

パターン、 グラデーション、 パレット、 各種ブラシなどのデータを読み込まずに起動します。 起動時間を短縮する目的で非対話非相互の状態にするために使用します。

-f, --no-fonts

フォントを読み込みません。 たとえばフォントを必要としないスクリプトを走らせる場合に GIMP 起動時間の短縮が図れますし、 GIMP を不正停止させるような欠陥のあるフォントに関わる問題を発見する用途にも使えます。

-s, --no-splash

起動時のスプラッシュスクリーン表示をしません。

--no-shm

Do not use shared memory between GIMP and plug-ins.

--no-cpu-accel

CPU 由来の特例加速機能を使用しません。 一部の加速機能にまつわるバグを避けたり、 特定したりする用途があります。

--session=name

Use a different sessionrc file for this GIMP session. The given session name is appended to the default sessionrc filename.

-g, --gimprc=filename

Use an alternative gimprc file instead of the default one. The gimprc file contains a record of your preferences. Useful in cases where plug-in paths or machine specs may be different.

--system-gimprc=filename

Use an alternate system gimprc file.

-b, --batch=commands

Execute the set of commands non-interactively. The set of commands is typically in the form of a script that can be executed by one of the GIMP scripting interpreters. When the command is -, commands are read from standard input.

--batch-interpreter=proc

バッチコマンドを実行するプロシージャーを指定します。 初期状態でのプロシージャーは Script-Fu です。

--quit

Quit immediately after performing requested actions

-c, --console-messages

Do not display dialog boxes on errors or warnings. Print the messages on the console instead.

--pdb-compat-mode=mode

PDB互換モード (off|on|warn)。

--stack-trace-mode=mode

クラッシュする原因を調べるためのデバッグ (never|query|always)。

--debug-handlers

致命的でないデバッグ用シグナルハンドラーを有効にします。 GIMP のデバッグ作業のためのものです。

--g-fatal-warnings

Make all warnings fatal. Useful for debugging.

--dump-gimprc

gimprc ファイルを出力します。 gimprc ファイルがもとで混乱したときに使えます。

--show-playground

Show a preferences page with experimental features.

--display=display

X ウィンドウシステム™ でのディスプレイ番号を指定します。 (プラットフォーム限定です。)

1.3. Configuration Folders

When first run, GIMP performs a series of steps to configure options and directories. The configuration process creates a user-writable configuration directory named GIMP, with a per-version subdirectory, i.e. GIMP/2.99. All of the configuration information is stored in this directory. If you remove or rename the directory, GIMP repeats the initial configuration process, creating a new GIMP/2.99 directory. You can use this capability to explore different configuration options without deleting your existing installation, or to recover if your configuration files are damaged.

Where your configuration folder will be stored, depends on your Operating System:

Linux など UNIX システム風のシステム

$XDG_CONFIG_HOME (defaulting to $HOME/.config);

Under Windows

%APPDATA% (usually c:\Users\USERNAME\AppData\Roaming\GIMP\2.99\);

Under Apple macOS

NSApplicationSupportDirectory (usually ~/Library/Application Support).

1.4. Tips and Tricks

Just a couple of suggestions before you start:

  • GIMP can provide tips you can read at any time using the menu command HelpTip of the Day. The tips provide information that is considered useful, but not easy to learn by experimenting; so they are worth reading. Please consider reading the tips when you have the time.

  • If at some point you are trying to do something, and GIMP seems to have suddenly stopped functioning, the Getting Unstuck section may be able to help you out.

  • Don't forget to check out the Preferences Dialog. GIMP is very customizable. There are a lot of settings that you can adjust to your personal preferences.