This commit is contained in:
Jonas Zeunert
2024-12-29 13:49:56 +01:00
parent 309ff756e8
commit 23a1cab345
2 changed files with 27 additions and 0 deletions

19
src/main.rs Normal file
View File

@@ -0,0 +1,19 @@
use std::path::PathBuf;
use image::{ImageBuffer, ImageReader};
use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
image: PathBuf,
}
fn main() {
let args = Args::parse();
}
fn parse_image(path: &PathBuf) -> ImageBuffer {
ImageReader::open(path)
}