# muhamed-adell/photatoshop---image-processing-app architecture

> Architecture diagram of the GitHub repository muhamed-adell/photatoshop---image-processing-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muhamed-adell/photatoshop---image-processing-app
- Repository: https://github.com/muhamed-adell/photatoshop---image-processing-app

## Overview

Photatoshop is a Qt desktop image editor. The main workflow is to open an image, preview and apply a filter, then undo/redo or save the result. Its documented capabilities include color adjustments, geometry and merge operations, effects, crop/resize options, zoom, and edit history. The sampled sources establish the image model and codec calls; some GUI-to-filter details and unsampled filter implementations are represented only as documented in the README.

Main entry points: [`src/Gui.cpp`](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp) (Qt editor), [`Headers/Image_Class.h`](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/Image_Class.h) (Image model), [`src/main.cpp`](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp) (Color filters), [`src/Filters.h`](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Filters.h) (Filter interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_gui["Qt editor<br/>[Gui.cpp]"]
  node_fileio["Open and save<br/>[Gui.cpp]"]
  node_preview["Preview and options<br/>[Gui.cpp]"]
end

subgraph group_processing["Image processing"]
  node_color["Color filters<br/>[main.cpp]"]
  node_geometry["Shape and size<br/>[main.cpp]"]
  node_effects["Image effects<br/>[main.cpp]"]
  node_filter_api["Filter interface<br/>[Filters.h]"]
end

subgraph group_imaging["Image data and codecs"]
  node_image["Image model<br/>[Image_Class.h]"]
  node_decoder["Image decoding<br/>[stb_image.h]"]
  node_encoder["Image encoding<br/>[stb_image_write.h]"]
end

subgraph group_editing["Edit workflow"]
  node_history["Undo and redo<br/>[Gui.cpp]"]
  node_zoom["Zoom and status<br/>[Gui.cpp]"]
end

node_user(("Editor"))

node_user -->|"uses"| node_gui
node_gui -->|"opens and saves"| node_fileio
node_gui -->|"configures filters"| node_preview
node_gui -->|"undoes and redoes"| node_history
node_gui -->|"zooms and reports"| node_zoom
node_gui -->|"uses"| node_filter_api
node_filter_api -->|"uses"| node_image
node_color -->|"edits pixels"| node_image
node_geometry -->|"transforms"| node_image
node_effects -->|"edits pixels"| node_image
node_image -->|"loads pixels"| node_decoder
node_image -->|"writes pixels"| node_encoder
node_gui -->|"applies filters"| node_color
node_gui -->|"applies filters"| node_geometry
node_gui -->|"applies filters"| node_effects

click node_gui "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp"
click node_fileio "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp"
click node_preview "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp"
click node_color "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp"
click node_geometry "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp"
click node_effects "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp"
click node_filter_api "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Filters.h"
click node_image "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/Image_Class.h"
click node_decoder "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/stb_image.h"
click node_encoder "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/stb_image_write.h"
click node_history "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp"
click node_zoom "https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp"

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_gui,node_fileio,node_preview toneBlue
class node_color,node_geometry,node_effects,node_filter_api toneAmber
class node_image,node_decoder,node_encoder toneMint
class node_history,node_zoom toneRose
class node_user toneIndigo
```

## Components

### Desktop interface

- [Qt editor](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp): `src/Gui.cpp`
- [Open and save](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp): `src/Gui.cpp`
- [Preview and options](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp): `src/Gui.cpp`

### Image processing

- [Color filters](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp): `src/main.cpp`
- [Shape and size](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp): `src/main.cpp`
- [Image effects](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/main.cpp): `src/main.cpp`
- [Filter interface](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Filters.h): `src/Filters.h`

### Image data and codecs

- [Image model](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/Image_Class.h): `Headers/Image_Class.h`
- [Image decoding](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/stb_image.h): `Headers/stb_image.h`
- [Image encoding](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/Headers/stb_image_write.h): `Headers/stb_image_write.h`

### Edit workflow

- [Undo and redo](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp): `src/Gui.cpp`
- [Zoom and status](https://github.com/muhamed-adell/photatoshop---image-processing-app/blob/main/src/Gui.cpp): `src/Gui.cpp`

### Other components

- **Editor**

## Connections

- Editor → Qt editor: uses (evidence: `README.md`)
- Qt editor → Open and save: opens and saves (evidence: `README.md`)
- Qt editor → Preview and options: configures filters (evidence: `README.md`)
- Qt editor → Undo and redo: undoes and redoes (evidence: `README.md`)
- Qt editor → Zoom and status: zooms and reports (evidence: `README.md`)
- Qt editor → Filter interface: uses (evidence: `src/Gui.cpp`)
- Filter interface → Image model: uses (evidence: `src/Filters.h`)
- Color filters → Image model: edits pixels (evidence: `src/main.cpp`)
- Shape and size → Image model: transforms (evidence: `src/main.cpp`)
- Image effects → Image model: edits pixels (evidence: `README.md`)
- Image model → Image decoding: loads pixels (evidence: `Headers/Image_Class.h`)
- Image model → Image encoding: writes pixels (evidence: `Headers/Image_Class.h`)
- Qt editor → Color filters: applies filters (evidence: `README.md`)
- Qt editor → Shape and size: applies filters (evidence: `README.md`)
- Qt editor → Image effects: applies filters (evidence: `README.md`)
