图像平均颜色查找器
提供图像平均颜色查找器的交互处理。
使用步骤
如何使用
- Choose a JPEG, PNG, or WebP image up to 20 MB and 40 megapixels.
- The canvas samples up to 100,000 evenly spaced pixels and calculates the average color locally.
- Copy the HEX, RGB, HSL, alpha, and sampling details.
A bounded, repeatable sample
The tool reads the browser-decoded canvas pixels and samples every nth pixel when an image exceeds 100,000 pixels, keeping the sample at or below that limit. Sampling starts at the first pixel and proceeds in row-major canvas order.
Transparent pixels are handled explicitly
Fully transparent pixels contribute no color. Partially transparent pixels contribute their RGB channels weighted by alpha; average alpha is calculated across all sampled pixels and shown separately. This keeps invisible canvas padding from pulling the color toward black.
Local and bounded by design
JPEG, PNG, and WebP files are decoded with Canvas in your browser. Files are limited to 20 MB and 40 megapixels for predictable memory use. No image upload or server processing is used.
常见问题
你可能还想知道
Does the image leave my device?
No. The file is decoded and sampled locally with Canvas, and no upload request is made.
How are transparent pixels treated?
Fully transparent pixels are ignored for RGB averaging. Partially transparent pixels are weighted by alpha, and average alpha is reported separately.
Is every pixel analyzed?
Images up to 100,000 pixels are sampled completely. Larger images use a deterministic evenly spaced stride capped at 100,000 samples.