# chrismoffardin/proyecto_2_moreno-moffardin architecture

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

- Interactive diagram: https://gitdiagram.com/chrismoffardin/proyecto_2_moreno-moffardin
- Repository: https://github.com/chrismoffardin/proyecto_2_moreno-moffardin

## Overview

Fotoapp is an interactive image-preparation tool for social media. The user loads a local image or URL, then chooses resizing, contrast equalization, filters, or edge detection; the tool displays comparisons and saves processed images. The graph separates menu control, image operations, and presentation/output. The excerpts show several operation implementations and menu dispatch, while the README documents loading and the full capability set; unsampled connections are omitted or marked unverified.

Main entry points: [`fotoapp.py`](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py) (Operations menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_menu["Main menu<br/>[fotoapp.py]"]
  node_operations_menu["Operations menu<br/>[fotoapp.py]"]
end

subgraph group_processing["Image processing"]
  node_image_loader["Image loader<br/>[fotoapp.py]"]
  node_image_state["Current image state<br/>[fotoapp.py]"]
  node_resize["Social resizing<br/>[fotoapp.py]"]
  node_contrast["Contrast equalization<br/>[fotoapp.py]"]
  node_filters["Pillow filters<br/>[fotoapp.py]"]
  node_edge_detection["Edge detection<br/>[fotoapp.py]"]
end

subgraph group_outputs["Presentation and output"]
  node_visualization["Comparison visuals<br/>[fotoapp.py]"]
  node_image_output[("Saved images<br/>[fotoapp.py]")]
end

node_user(("User"))
node_url_source["Image URL"]

node_user -->|"chooses actions"| node_menu
node_menu -->|"loads image"| node_image_loader
node_menu -->|"opens operations"| node_operations_menu
node_operations_menu -->|"dispatches resize"| node_resize
node_operations_menu -->|"dispatches contrast"| node_contrast
node_operations_menu -->|"dispatches filters"| node_filters
node_operations_menu -->|"dispatches detection"| node_edge_detection
node_url_source -->|"supplies image"| node_image_loader
node_resize -->|"shows comparison"| node_visualization
node_resize -->|"saves result"| node_image_output
node_contrast -->|"shows histograms"| node_visualization
node_contrast -->|"saves result"| node_image_output
node_filters -->|"shows comparison"| node_visualization
node_filters -->|"saves result"| node_image_output
node_edge_detection -->|"shows comparison"| node_visualization
node_image_loader -.->|"stores image"| node_image_state

click node_menu "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_operations_menu "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_image_loader "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_image_state "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_resize "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_contrast "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_filters "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_edge_detection "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_visualization "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"
click node_image_output "https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py"

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_menu,node_operations_menu,node_user toneBlue
class node_image_loader,node_image_state,node_resize,node_contrast,node_filters,node_edge_detection toneAmber
class node_visualization,node_image_output toneMint
class node_url_source toneIndigo
```

## Components

### User interaction

- [Main menu](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Operations menu](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`

### Image processing

- [Image loader](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Current image state](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Social resizing](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Contrast equalization](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Pillow filters](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Edge detection](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`

### Presentation and output

- [Comparison visuals](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`
- [Saved images](https://github.com/chrismoffardin/proyecto_2_moreno-moffardin/blob/main/fotoapp.py): `fotoapp.py`

### Other components

- **User**
- **Image URL**

## Connections

- User → Main menu: chooses actions (evidence: `README.md`)
- Main menu → Image loader: loads image (evidence: `README.md`)
- Main menu → Operations menu: opens operations (evidence: `README.md`)
- Operations menu → Social resizing: dispatches resize (evidence: `fotoapp.py`)
- Operations menu → Contrast equalization: dispatches contrast (evidence: `fotoapp.py`)
- Operations menu → Pillow filters: dispatches filters (evidence: `fotoapp.py`)
- Operations menu → Edge detection: dispatches detection (evidence: `fotoapp.py`)
- Image URL → Image loader: supplies image (evidence: `fotoapp.py`)
- Social resizing → Comparison visuals: shows comparison (evidence: `fotoapp.py`)
- Social resizing → Saved images: saves result (evidence: `fotoapp.py`)
- Contrast equalization → Comparison visuals: shows histograms (evidence: `fotoapp.py`)
- Contrast equalization → Saved images: saves result (evidence: `fotoapp.py`)
- Pillow filters → Comparison visuals: shows comparison (evidence: `fotoapp.py`)
- Pillow filters → Saved images: saves result (evidence: `fotoapp.py`)
- Edge detection → Comparison visuals: shows comparison (evidence: `fotoapp.py`)
- Image loader → Current image state: stores image (evidence: `README.md`)
