colorgram 2.1.0
colorgram: ^2.1.0 copied to clipboard
Colorgram is a lightweight tool that allows you to extract prominent colors from image. This is a Dart port of the original Colorgram.js library.
1.0.0 #
- Initial version.
1.0.1 #
- Added links to example
2.0.0 #
- Major performance improvements
- Makes it easier for resizing operations to be done on image
- Dropped pure dart support
- Flutter Web is now supported
- Changed how the main extractColor function works: Takes ImageProvider as the input instead of File
2.1.0 #
- Up to ~2.5x faster color sampling in release builds, with identical results
- Added
extractColorFromImage()andextractColorFromRgba()for already decoded images and raw pixels - Added
CgColor.toColor()andCgColor.toString() - Fixed
extractColor()hanging forever when an image fails to load, it now completes with an error - Fixed animated images throwing
Bad state: Future already completedon every frame after extracting - Fixed the image and a listener being kept alive after every call
- Requires Dart 3
- Published package is 7 KB instead of 11 MB, test images are no longer included
- Reworked README