image_guard 0.1.0-dev.1
image_guard: ^0.1.0-dev.1 copied to clipboard
On-device image compression to an exact byte limit and resolution, with a Rust core. NSFW detection coming next.
0.1.0-dev.1 #
- Rust core: decode (JPEG/PNG/WebP/GIF/BMP), EXIF orientation, Lanczos3 resize, JPEG/PNG encode.
- Target-size search: output always
<= maxBytesorcannotMeetTarget. - User-defined size (
maxBytes) and resolution (maxWidth/maxHeight) with full validation. - Keeps inputs that already fit; lossless EXIF/GPS stripping.
- Dart API:
SafeImage.compress,SafeImage.info,SafeImageException.