pub fn generate_image_metadata(file_bytes: &[u8]) -> Option<ImageMetadata>Expand description
Generate image metadata (thumbhash + dimensions) from raw file bytes.
Returns None if the bytes can’t be decoded as an image.
Used by send_file_dm to automatically include preview metadata for images.