assets_optimizer 1.0.0 copy "assets_optimizer: ^1.0.0" to clipboard
assets_optimizer: ^1.0.0 copied to clipboard

A powerful CLI tool that magically shrinks your app size by optimizing images with a single command

Assets Optimizer πŸ“¦ #

A powerful CLI tool that magically shrinks your app size by optimizing images. Supports recursive directory optimization with intelligent compression.

Features πŸš€ #

  • Optimizes JPG, JPEG, and PNG files
  • Supports recursive directory scanning
  • Maintains original directory structure
  • Smart compression based on file type
  • Progress indicator with real-time feedback
  • Detailed size reduction statistics
  • Video file detection (.mp4, .mov)

Installation πŸ“₯ #

dart pub global activate assets_optimizer

Usage πŸ› οΈ #

# Optimize all images in the assets directory
assets_optimizer optimize assets/

# Get help
assets_optimizer --help

Compression Settings βš™οΈ #

  • PNG files: Level 6 compression (balanced between size and quality)
  • JPG/JPEG files: 70% quality (visually lossless in most cases)

Example Output πŸ“Š #

β ‹ [1/5] profile.jpg πŸ“¦ 1024KB β†’ 412KB πŸ’Ύ Saved: 59.8% [============>
β ™ [2/5] background.png πŸ“¦ 2048KB β†’ 890KB πŸ’Ύ Saved: 56.5% [============>
...
πŸŽ‰ All images processed!
πŸ“¦ Total Original: 10240 KB
πŸ’Ύ Total Compressed: 4096 KB
🎊 Total Saved: 6144 KB

Contributing 🀝 #

Contributions are welcome! Please feel free to submit a Pull Request.

License πŸ“„ #

MIT License - see the LICENSE file for details

1
likes
0
points
16
downloads

Publisher

verified publisherhbosoftware.com

Weekly Downloads

A powerful CLI tool that magically shrinks your app size by optimizing images with a single command

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, image, logger, path, yaml

More

Packages that depend on assets_optimizer