# Photo Editor with Libraw RAW Processing
## Demo
A Rust-based photo editor that processes RAW images using the libraw library for professional photography adjustments.
## Features
- Process RAW image files with 11 adjustment parameters
- Full CLI interface with parameter validation
- Direct integration with system-installed libraw library
- Optimized release build (650KB executable)
- Cross-platform compatibility (macOS tested)
## Installation
### Prerequisites
First install libraw on your system:
**macOS:**
```bash
brew install libraw
```
### Building
```bash
# Clone the repository
git clone
cd PhotoEditor/photo_editor
# Build release version
cargo build --release
# Find the executable in:
./target/release/photo_editor
```
## Usage
### Basic Usage
```bash
./target/release/photo_editor \
--input input_file.raw \
--output output_file.jpg \
--exposure 0.5 \
--contrast 20 \
--highlights -10 \
--shadows 5 \
--whites 0 \
--blacks 0 \
--clarity 10 \
--vibrance 15 \
--saturation 5 \
--temperature 10 \
--tint 5
```
### CLI Options
```
Photo Editor v0.1
==================
Input file: example.raw
Output file: output.jpg
Exposure: 0.0
Contrast: 0
Highlights: 0
Shadows: 0
Whites: 0
Blacks: 0
Clarity: 0
Vibrance: 0
Saturation: 0
Temperature: 0
Tint: 0
Photo Editor - A Rust-based photo editor with RAW image processing capabilities using libraw
Usage: photo_editor [OPTIONS] --input --output