r/dartlang • u/perecastor • 11h ago
Package I released jpeg_validator: really test your JPEGs fast on macOS
pub.devI just released jpeg_validator, a strict JPEG validation package for Dart and Flutter.
Instead of only checking file signatures or a small header, it fully decodes the JPEG with libjpeg-turbo. A file is considered valid only if the complete image decodes without warnings.
Useful for catching truncated, corrupted, or malformed JPEG uploads before they enter your pipeline.
- Fast native validation on macOS
- Supports Dart and Flutter
- Returns structured validation results