mdk-core 0.8.0

A simplified interface to build secure messaging apps on nostr with MLS.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shared image processing utilities for validation and metadata extraction
//!
//! This module provides common image processing functionality used by both
//! MIP-04 encrypted media and MIP-01 group images. It includes:
//! - Image validation (dimensions, file size, format)
//! - Metadata extraction (dimensions, blurhash, thumbhash)
//! - EXIF sanitization for privacy

pub mod metadata;
pub mod types;
pub mod validation;

// Re-export commonly used types and functions
pub use types::{
    ImageMetadata, MAX_FILE_SIZE, MAX_FILENAME_LENGTH, MAX_IMAGE_DIMENSION, MediaProcessingError,
    MediaProcessingOptions,
};