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
18
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