# gnome/gimp architecture

> Architecture diagram of the GitHub repository gnome/gimp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gnome/gimp
- Repository: https://github.com/gnome/gimp

## Overview

GIMP is a desktop image editor. Its broad workflow is launching the application, working through an interface and tools on images, and using file and plug-in systems for input, output, and extensions. The graph also includes core image and resource models, configuration, and input controllers. The README identifies the product but does not document these capabilities in detail; several relationships below are therefore marked dashed where the sampled evidence does not establish a direct call.

Main entry points: [`app/core/gimp.h`](https://github.com/gnome/gimp/blob/master/app/core/gimp.h) (Application State), [`app/app.c`](https://github.com/gnome/gimp/blob/master/app/app.c) (Application Setup), [`app/tools/gimp-tool-options-manager.c`](https://github.com/gnome/gimp/blob/master/app/tools/gimp-tool-options-manager.c) (Tool Options), [`modules/controller-dx-dinput.c`](https://github.com/gnome/gimp/blob/master/modules/controller-dx-dinput.c) (DirectInput Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application Runtime"]
  node_entry["Application Entry<br/>[main.c]"]
  node_app["Application Setup<br/>[app.c]"]
  node_gimp["Application State<br/>[gimp.h]"]
  node_config["Configuration<br/>[gimpcoreconfig.c]"]
end

subgraph group_interface["User Interface"]
  node_ui["UI Manager<br/>[gimpuimanager.c]"]
  node_actions["UI Actions<br/>[actions.c]"]
  node_actionmodel["Action Framework<br/>[gimpaction.h]"]
end

subgraph group_editing["Image Editing"]
  node_image["Image Model<br/>[gimpimage.h]"]
  node_containers["Object Containers<br/>[gimpcontainer.h]"]
  node_objects["Core Objects<br/>[gimpobject.h]"]
  node_tools["Tool Manager<br/>[tool_manager.c]"]
  node_tooloptions["Tool Options"]
end

subgraph group_resources["Files and Resources"]
  node_fileopen["File Opening<br/>[file-open.h]"]
  node_xcf["XCF Loading<br/>[xcf-load.c]"]
  node_datafactory["Data Factories"]
end

subgraph group_extension["Extensions and Input"]
  node_extensions["Extension Manager"]
  node_plugquery["Plug-in Search"]
  node_procedure["Procedure Database<br/>[gimpprocedure.h]"]
  node_controller["Controller API<br/>[gimpcontroller.h]"]
  node_dxcontroller["DirectInput Controller"]
  node_moduleapi["Module API<br/>[gimpmodule.h]"]
end

node_user(("User"))

node_user -.->|"starts"| node_entry
node_entry -.->|"initializes"| node_app
node_app -->|"configures"| node_gimp
node_app -->|"uses"| node_config
node_app -->|"uses"| node_fileopen
node_gimp -.->|"tracks"| node_image
node_gimp -.->|"holds"| node_containers
node_gimp -->|"owns"| node_extensions
node_gimp -.->|"uses"| node_procedure
node_ui -->|"manages"| node_actionmodel
node_actions -.->|"registers"| node_actionmodel
node_tools -->|"reads"| node_image
node_tooloptions -->|"reads"| node_gimp
node_tooloptions -.->|"configures"| node_tools
node_fileopen -.->|"loads"| node_xcf
node_app -.->|"uses"| node_datafactory
node_extensions -->|"references"| node_gimp
node_plugquery -->|"queries"| node_procedure
node_dxcontroller -->|"implements"| node_controller
node_dxcontroller -->|"registers"| node_moduleapi

click node_entry "https://github.com/gnome/gimp/blob/master/app/main.c"
click node_app "https://github.com/gnome/gimp/blob/master/app/app.c"
click node_gimp "https://github.com/gnome/gimp/blob/master/app/core/gimp.h"
click node_config "https://github.com/gnome/gimp/blob/master/app/config/gimpcoreconfig.c"
click node_ui "https://github.com/gnome/gimp/blob/master/app/widgets/gimpuimanager.c"
click node_actions "https://github.com/gnome/gimp/blob/master/app/actions/actions.c"
click node_actionmodel "https://github.com/gnome/gimp/blob/master/app/widgets/gimpaction.h"
click node_image "https://github.com/gnome/gimp/blob/master/app/core/gimpimage.h"
click node_containers "https://github.com/gnome/gimp/blob/master/app/core/gimpcontainer.h"
click node_objects "https://github.com/gnome/gimp/blob/master/app/core/gimpobject.h"
click node_tools "https://github.com/gnome/gimp/blob/master/app/tools/tool_manager.c"
click node_tooloptions "https://github.com/gnome/gimp/blob/master/app/tools/gimp-tool-options-manager.c"
click node_fileopen "https://github.com/gnome/gimp/blob/master/app/file/file-open.h"
click node_xcf "https://github.com/gnome/gimp/blob/master/app/xcf/xcf-load.c"
click node_datafactory "https://github.com/gnome/gimp/blob/master/app/core/gimp-data-factories.c"
click node_extensions "https://github.com/gnome/gimp/blob/master/app/core/gimpextensionmanager.c"
click node_plugquery "https://github.com/gnome/gimp/blob/master/app/plug-in/gimppluginmanager-query.c"
click node_procedure "https://github.com/gnome/gimp/blob/master/app/pdb/gimpprocedure.h"
click node_controller "https://github.com/gnome/gimp/blob/master/libgimpwidgets/gimpcontroller.h"
click node_dxcontroller "https://github.com/gnome/gimp/blob/master/modules/controller-dx-dinput.c"
click node_moduleapi "https://github.com/gnome/gimp/blob/master/libgimpmodule/gimpmodule.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_gimp,node_config,node_user toneBlue
class node_ui,node_actions,node_actionmodel toneAmber
class node_image,node_containers,node_objects,node_tools,node_tooloptions toneMint
class node_fileopen,node_xcf,node_datafactory toneRose
class node_extensions,node_plugquery,node_procedure,node_controller,node_dxcontroller,node_moduleapi toneIndigo
```

## Components

### Application Runtime

- [Application Entry](https://github.com/gnome/gimp/blob/master/app/main.c): `app/main.c`
- [Application Setup](https://github.com/gnome/gimp/blob/master/app/app.c): `app/app.c`
- [Application State](https://github.com/gnome/gimp/blob/master/app/core/gimp.h): `app/core/gimp.h`
- [Configuration](https://github.com/gnome/gimp/blob/master/app/config/gimpcoreconfig.c): `app/config/gimpcoreconfig.c`

### User Interface

- [UI Manager](https://github.com/gnome/gimp/blob/master/app/widgets/gimpuimanager.c): `app/widgets/gimpuimanager.c`
- [UI Actions](https://github.com/gnome/gimp/blob/master/app/actions/actions.c): `app/actions/actions.c`
- [Action Framework](https://github.com/gnome/gimp/blob/master/app/widgets/gimpaction.h): `app/widgets/gimpaction.h`

### Image Editing

- [Image Model](https://github.com/gnome/gimp/blob/master/app/core/gimpimage.h): `app/core/gimpimage.h`
- [Object Containers](https://github.com/gnome/gimp/blob/master/app/core/gimpcontainer.h): `app/core/gimpcontainer.h`
- [Core Objects](https://github.com/gnome/gimp/blob/master/app/core/gimpobject.h): `app/core/gimpobject.h`
- [Tool Manager](https://github.com/gnome/gimp/blob/master/app/tools/tool_manager.c): `app/tools/tool_manager.c`
- [Tool Options](https://github.com/gnome/gimp/blob/master/app/tools/gimp-tool-options-manager.c): `app/tools/gimp-tool-options-manager.c`

### Files and Resources

- [File Opening](https://github.com/gnome/gimp/blob/master/app/file/file-open.h): `app/file/file-open.h`
- [XCF Loading](https://github.com/gnome/gimp/blob/master/app/xcf/xcf-load.c): `app/xcf/xcf-load.c`
- [Data Factories](https://github.com/gnome/gimp/blob/master/app/core/gimp-data-factories.c): `app/core/gimp-data-factories.c`

### Extensions and Input

- [Extension Manager](https://github.com/gnome/gimp/blob/master/app/core/gimpextensionmanager.c): `app/core/gimpextensionmanager.c`
- [Plug-in Search](https://github.com/gnome/gimp/blob/master/app/plug-in/gimppluginmanager-query.c): `app/plug-in/gimppluginmanager-query.c`
- [Procedure Database](https://github.com/gnome/gimp/blob/master/app/pdb/gimpprocedure.h): `app/pdb/gimpprocedure.h`
- [Controller API](https://github.com/gnome/gimp/blob/master/libgimpwidgets/gimpcontroller.h): `libgimpwidgets/gimpcontroller.h`
- [DirectInput Controller](https://github.com/gnome/gimp/blob/master/modules/controller-dx-dinput.c): `modules/controller-dx-dinput.c`
- [Module API](https://github.com/gnome/gimp/blob/master/libgimpmodule/gimpmodule.h): `libgimpmodule/gimpmodule.h`

### Other components

- **User**

## Connections

- User → Application Entry: starts
- Application Entry → Application Setup: initializes
- Application Setup → Application State: configures (evidence: `app/app.c`)
- Application Setup → Configuration: uses (evidence: `app/app.c`)
- Application Setup → File Opening: uses (evidence: `app/app.c`)
- Application State → Image Model: tracks
- Application State → Object Containers: holds
- Application State → Extension Manager: owns (evidence: `app/core/gimp.h`)
- Application State → Procedure Database: uses
- UI Manager → Action Framework: manages (evidence: `app/widgets/gimpuimanager.c`)
- UI Actions → Action Framework: registers
- Tool Manager → Image Model: reads (evidence: `app/tools/tool_manager.c`)
- Tool Options → Application State: reads (evidence: `app/tools/gimp-tool-options-manager.c`)
- Tool Options → Tool Manager: configures
- File Opening → XCF Loading: loads
- Application Setup → Data Factories: uses
- Extension Manager → Application State: references (evidence: `app/core/gimpextensionmanager.c`)
- Plug-in Search → Procedure Database: queries (evidence: `app/plug-in/gimppluginmanager-query.c`)
- DirectInput Controller → Controller API: implements (evidence: `modules/controller-dx-dinput.c`)
- DirectInput Controller → Module API: registers (evidence: `modules/controller-dx-dinput.c`)
