foodshare_image/
lib.rs

1//! Image processing utilities for FoodShare.
2//!
3//! This crate provides:
4//! - Format detection from magic bytes
5//! - Image resizing and optimization
6//! - Metadata extraction
7//! - Smart width calculation for file size tiers
8
9mod detect;
10mod metadata;
11pub mod smart_width;
12mod error;
13
14#[cfg(feature = "processing")]
15mod resize;
16
17pub use detect::{detect_format, ImageFormat};
18pub use metadata::{ImageMetadata, extract_metadata};
19pub use smart_width::{calculate_target_width, SizeTier};
20pub use error::{ImageError, Result};
21
22#[cfg(feature = "processing")]
23pub use resize::{resize_image, ResizeOptions};