🎨 减少 WebP 颜色Reduce WebP Colours
用中位切分从真实像素中选出最多 N 种代表色(与「提取 WebP 调色板」相同的算法),把每个像素换成最接近的颜色,并以无损方式导出,保证文件里最多 N 种颜色;也可导出 PNG。本地处理。Pick at most N representative colours from the actual pixels with median cut (the same method as Extract WebP Colour Palette), replace every pixel with the nearest one, and export losslessly so the file really has at most N colours; PNG export is also available. Processed locally.
使用说明与常见问题How-to & FAQ
「减少 WebP 颜色」是什么?What is the Reduce WebP Colours tool?
用中位切分从真实像素中选出最多 N 种代表色(与「提取 WebP 调色板」相同的算法),把每个像素换成最接近的颜色,并以无损方式导出,保证文件里最多 N 种颜色;也可导出 PNG。本地处理。Pick at most N representative colours from the actual pixels with median cut (the same method as Extract WebP Colour Palette), replace every pixel with the nearest one, and export losslessly so the file really has at most N colours; PNG export is also available. Processed locally.
如何使用「减少 WebP 颜色」?How do I use the Reduce WebP Colours tool?
在「减少 WebP 颜色」中,选择或拖入文件,按需设置「颜色数」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Reduce WebP Colours: Choose or drop your files, set "Colours", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).
能导出哪些格式?Which formats can I export?
WebP(默认,无损)或 PNG。两种格式都按像素原样保存,文件里的颜色数不会超过所选数量。WebP (default, lossless) or PNG. Both keep the pixels exactly as computed, so the file never has more colours than you chose.
会上传吗?Uploaded?
不会,图片只在浏览器本地处理。No. Processed locally in your browser.
导出的文件真的只有 N 种颜色吗?Does the exported file really have at most N colours?
是的。颜色用中位切分从真实像素中选出(每组像素的平均色),每个像素换成最接近的颜色,然后以无损 WebP(或 PNG)导出:WebP 由内置的 libwebp 编码器直接按像素写出,不经过浏览器画布,所以不会因为压缩或浏览器的读回噪声产生新颜色。代价是文件可能比原图大。Yes. The colours are chosen from the actual pixels with median cut (each is the average of a group of pixels), every pixel is replaced by the nearest one, and the result is exported as lossless WebP (or PNG). The WebP is written straight from the pixels by a built-in libwebp encoder, not through the browser canvas, so neither compression nor browser read-back noise can add colours. The trade-off is that the file can be larger than the original.
透明像素怎么处理?What about transparent pixels?
透明度保持不变;完全透明的像素不参与选色。Transparency is kept as it is; fully transparent pixels are ignored when choosing colours.
有哪些选项可以调整?What options can I adjust?
「减少 WebP 颜色」的设置:「颜色数」默认 16,范围 2–256;「输出格式」可选 WebP、PNG(默认 WebP)。没有质量设置:结果总是无损导出,这样文件里最多只有所选数量的颜色。可选文件:常见图片格式(含 HEIC、HEIF、AVIF、WEBP、BMP、JFIF)。每次生成结果都按当前设置处理。Settings in Reduce WebP Colours: "Colours" default 16, range 2–256; "Format": WebP or PNG (default WebP). There is no quality setting: the result is always exported lossless, so the file contains at most the chosen number of colours. Files: common image formats (including HEIC, HEIF, AVIF, WEBP, BMP, JFIF). The result always uses the current settings.
「减少 WebP 颜色」免费吗?需要注册吗?Is the Reduce WebP Colours free? Do I need an account?
「减少 WebP 颜色」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Reduce WebP Colours is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.