🎨 提取位图调色板(BMP 主色 / 色值列表)Extract a Bitmap Colour Palette
从位图(BMP)或其他图片中提取主色调色板:按出现次数选出最多 64 种颜色,列出 HEX 色值和占比,并可把原图映射到提取的调色板(减色)。适合做像素风参考、设计取色、生成 CSS 变量。默认导出 PNG(调色板色条)或映射后的 24 位 BMP,支持批量,图片只在浏览器本地处理。Extract a colour palette from a bitmap (BMP) or any other image: up to 64 colours by frequency, listed with HEX codes and shares, and optionally remap the image onto that palette. Handy for pixel-art references, design swatches and CSS variables. Default output is a PNG swatch strip or a remapped 24-bit BMP; works in bulk, locally in your browser.
使用说明与常见问题How-to & FAQ
「提取位图调色板(BMP 主色 / 色值列表)」是什么?What is the Extract a Bitmap Colour Palette tool?
从位图(BMP)或其他图片中提取主色调色板:按出现次数选出最多 64 种颜色,列出 HEX 色值和占比,并可把原图映射到提取的调色板(减色)。适合做像素风参考、设计取色、生成 CSS 变量。默认导出 PNG(调色板色条)或映射后的 24 位 BMP,支持批量,图片只在浏览器本地处理。Extract a colour palette from a bitmap (BMP) or any other image: up to 64 colours by frequency, listed with HEX codes and shares, and optionally remap the image onto that palette. Handy for pixel-art references, design swatches and CSS variables. Default output is a PNG swatch strip or a remapped 24-bit BMP; works in bulk, locally in your browser.
如何使用「提取位图调色板(BMP 主色 / 色值列表)」?How do I use the Extract a Bitmap Colour Palette tool?
在「提取位图调色板(BMP 主色 / 色值列表)」中,选择或拖入文件,按需设置「颜色数」、「输出」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Extract a Bitmap Colour Palette: Choose or drop your files, set "Colours", "Output", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).
按出现次数和映射回图片有什么区别?What is the difference between By frequency and Remap image?
按出现次数会生成一条色条预览,并在下方列出每种颜色的 HEX 和占比,方便复制到设计稿。映射回图片则把原图每个像素换成调色板里最接近的颜色,得到减色后的图,类似“位图减色”。By frequency builds a swatch strip and lists each colour's HEX and share so you can copy them into a design. Remap image replaces every pixel with the nearest palette colour, giving a reduced-colour image — similar to Reduce Bitmap Colours.
透明像素怎么处理?What about transparent pixels?
完全透明的像素不参与统计,也不会出现在调色板里;映射模式下它们保持透明。Fully transparent pixels are ignored when counting and never appear in the palette; under Remap they stay transparent.
导出的 BMP 是什么格式?What kind of BMP is produced?
默认导出 24 位不压缩 BMP(BITMAPINFOHEADER,自下而上存储),Windows 画图、Photoshop、GIMP、Python Pillow 和各种嵌入式工具都能直接打开。BMP 不支持透明,透明部分会填成白色并在结果里提示;需要保留透明请导出 PNG。By default a 24-bit uncompressed BMP (BITMAPINFOHEADER, stored bottom-up), which Windows Paint, Photoshop, GIMP, Python Pillow and embedded tools open directly. BMP has no transparency, so transparent areas are filled with white (the result says so); export PNG to keep transparency.
支持哪些图片?会上传吗?Which images work, and are they uploaded?
支持 JPG、PNG、WebP、GIF(静态或动图的第一帧)、BMP、AVIF、HEIC,以及浏览器能打开的 SVG;可一次拖入最多 50 张批量处理,单张最大 60 MB、1 亿像素;多张结果可打包成 ZIP 下载。所有处理都在你的浏览器里完成,图片不会上传,结果中也不会保留 EXIF 等元数据(包括拍摄位置)。JPG, PNG, WebP, GIF (a still or the first frame of an animation), BMP, AVIF, HEIC, and SVG that the browser can open. Drop in up to 50 images at once; each can be up to 60 MB and 100 megapixels, and several results can be downloaded as a ZIP. Everything happens in your browser: images are not uploaded, and EXIF and other metadata (including location) is not kept in the results.
「提取位图调色板(BMP 主色 / 色值列表)」免费吗?需要注册吗?Is the Extract a Bitmap Colour Palette free? Do I need an account?
「提取位图调色板(BMP 主色 / 色值列表)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Extract a Bitmap Colour Palette is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.