Module formats

Source
Expand description

File format detection and processing

This module handles different image file formats and extracts metadata from each according to format-specific requirements.

Structs§

JpegSegmentInfo
JPEG segment scanner result

Enums§

FileFormat
Supported file formats
JpegSegment
JPEG segment types

Functions§

detect_file_format
Detect file format using magic bytes (primary) with extension fallback
detect_file_format_from_path
Convenience function to detect format from file path
extract_jpeg_exif
Extract EXIF data from JPEG file
extract_jpeg_xmp
Extract XMP data from JPEG file
extract_metadata
Extract metadata from a file (Milestone 1: real file I/O with JPEG detection)
extract_tiff_exif
Extract EXIF data from TIFF file
extract_tiff_xmp
Extract XMP data from TIFF file
get_format_properties
Get format properties for validation and processing
get_tiff_endianness
Get TIFF endianness from header
scan_jpeg_segments
Scan JPEG file for all APP1 segments containing EXIF or XMP data
validate_tiff_format
Validate TIFF file format