npm / fast-average-color
fast-average-color
What changed in fast-average-color 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking1 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initfast-average-color 98 changes
Breaking changes 1
Validates step as a positive safe integer; invalid values, including 0 and NaN, now throw during pixel processing instead of silently falling back to 1 or producing incorrect results.
Behavior and default changes 1
Recognizes HTML images, videos, and canvases across windows and iframes using their object tags.
Fixes and other changes 6
Preserves the original processing error instead of replacing it with a generic CORS error, and logs each error once.
Preserves the original processing error instead of replacing it with a generic CORS error, and logs each error once.
Disables image smoothing after resizing the canvas so the setting is preserved during color sampling.
Uses display dimensions to calculate average color and avoid sampling only part of a frame when display and coded sizes differ.
Fixed the image loading completion check.
Fixed binding of the event handler for images.