🔍

首页Home › 图片工具Image Tools

🪣 图片颜色替换(换色 / 去底色)Replace a Color in an Image

把图片中的某种颜色替换成另一种颜色或变成透明:点击预览图吸取要替换的颜色,调整容差覆盖相近色,边缘柔和过渡;可保留原有的明暗层次(换衣服、换 Logo 颜色更自然),也能把白色或绿幕背景变透明。会显示替换了多少像素,支持批量,图片只在浏览器本地处理。Replace one colour in an image with another, or make it transparent. Click the preview to pick the colour, set a tolerance to catch similar shades, soften the edges, and optionally keep the original shading so recoloured clothes or logos look natural. It can also turn a white or green-screen background transparent. Shows how many pixels were changed, works in bulk and runs locally in your browser.

点击选择或拖放图片(可多选)Click or drop images here (multiple allowed)

使用说明与常见问题How-to & FAQ

「图片颜色替换(换色 / 去底色)」是什么?What is the Replace a Color in an Image tool?

把图片中的某种颜色替换成另一种颜色或变成透明:点击预览图吸取要替换的颜色,调整容差覆盖相近色,边缘柔和过渡;可保留原有的明暗层次(换衣服、换 Logo 颜色更自然),也能把白色或绿幕背景变透明。会显示替换了多少像素,支持批量,图片只在浏览器本地处理。Replace one colour in an image with another, or make it transparent. Click the preview to pick the colour, set a tolerance to catch similar shades, soften the edges, and optionally keep the original shading so recoloured clothes or logos look natural. It can also turn a white or green-screen background transparent. Shows how many pixels were changed, works in bulk and runs locally in your browser.

如何使用「图片颜色替换(换色 / 去底色)」?How do I use the Replace a Color in an Image tool?

在「图片颜色替换(换色 / 去底色)」中,选择或拖入文件,按需设置「要替换的颜色」、「替换为」、「容差」、「边缘柔化」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Replace a Color in an Image: Choose or drop your files, set "Colour to replace", "Replace with", "Tolerance", "Edge softness", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).

容差和边缘柔化怎么调?How do Tolerance and Edge softness work?

容差决定多接近的颜色也会被替换:0 只替换完全相同的颜色,10–20 适合纯色图形和截图,照片或带渐变的物体通常要 25–40;颜色差别用接近人眼感受的加权 RGB 距离计算,0–100 对应从完全相同到黑白之差。边缘柔化在容差之外再留一段过渡带,越接近目标色替换得越多,避免出现锯齿和生硬的边。Tolerance decides how close a colour must be to be replaced: 0 only replaces the exact colour, 10–20 suits flat graphics and screenshots, and photos or shaded objects usually need 25–40. Differences use a weighted RGB distance that is close to how we see colour, with 0–100 running from identical to the difference between black and white. Edge softness adds a transition band beyond the tolerance where colours are replaced partially, avoiding jagged, hard edges.

“保留明暗层次”是什么?What does Keep shading do?

开启时,新颜色会继承原来像素的明暗:原图中较暗的阴影部分替换后也较暗,高光也保持较亮,所以给衣服、汽车、Logo 换颜色看起来更自然;关闭时所有匹配的像素都变成同一种纯色,适合扁平图标和图表。勾选“替换为透明”时该选项会禁用,因为透明像素没有颜色层次可保留。When it's on, the new colour keeps each pixel's light and shade: darker shadows stay darker after the change and highlights stay brighter, so recolouring clothes, cars or logos looks natural. When it's off, every matching pixel becomes the same flat colour, which suits flat icons and charts. The option is disabled while Make it transparent is ticked, because transparent pixels have no shading to keep.

可以用来去掉白底或绿幕吗?Can it remove a white background or green screen?

可以:吸取背景颜色,勾选“替换为透明”,适当调大容差和边缘柔化,然后导出 PNG 或 WebP。它按颜色去除,前景里相同颜色的部分也会变透明;背景复杂的照片建议使用专门的抠图工具。Yes: pick the background colour, tick Make it transparent, raise the tolerance and edge softness a little and export PNG or WebP. It works by colour, so parts of the subject with the same colour become transparent too; for busy photo backgrounds a dedicated background remover works better.

有哪些选项可以调整?What options can I adjust?

「图片颜色替换(换色 / 去底色)」的设置:「要替换的颜色」默认 #ff0000;「替换为」默认 #0057ff;「容差」默认 12,范围 0–100;「边缘柔化」默认 30,范围 0–100;「输出格式」可选 PNG、JPG、WebP(默认 PNG);「质量」默认 92,范围 40–100;可勾选:「替换为透明」、「保留明暗层次」(默认勾选);可选文件:常见图片格式(含 HEIC、HEIF、AVIF、WEBP、BMP、JFIF)。改动任一选项后结果会按新设置重新生成。Settings in the Replace a Color in an Image — "Colour to replace" default #ff0000; "Replace with" default #0057ff; "Tolerance" default 12, range 0–100; "Edge softness" default 30, range 0–100; "Format": PNG, JPG, WebP (default PNG); "Quality" default 92, range 40–100; tick boxes: "Make it transparent", "Keep shading" (on by default); files: common image formats (including HEIC, HEIF, AVIF, WEBP, BMP, JFIF). Changing any option regenerates the result with the new setting.

图片会被上传到服务器吗?Are my images uploaded?

不会。「图片颜色替换(换色 / 去底色)」使用浏览器 Canvas 在本地处理图片,处理后的文件直接从你的浏览器下载。No. The Replace a Color in an Image processes images locally with the browser Canvas API and the result downloads straight from your browser.

「图片颜色替换(换色 / 去底色)」免费吗?需要注册吗?Is the Replace a Color in an Image free? Do I need an account?

「图片颜色替换(换色 / 去底色)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Replace a Color in an Image is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

🥔 低画质图片生成器(电子包浆 / 渣画质)Low Quality Image Maker👾 故障风图片生成器(Glitch 效果)Glitch Image Maker✏️ 图片描边(贴纸白边 / 轮廓线)Add Stroke to Image (Outline)▶️ GIF 播放器(逐帧查看、变速、倒放)GIF Player (Frame by Frame, Speed, Reverse)📝 图片标注(箭头、方框、文字、编号、马赛克)Annotate Image (Arrows, Boxes, Text, Numbers, Blur)✂️ 去除图片边框留白(自动裁掉纯色 / 透明边)Unpad Image (Trim Borders & Padding)▱ 图片倾斜变形(水平 / 垂直斜切)Skew Image (Horizontal & Vertical Shear)↔️ 图片平移(循环位移 / 偏移)Shift Image (Offset & Wrap Around)🔀 图片 RGB 通道重排(BGR / GBR 等互换)Reorder RGB Channels in an Image🎚️ 图片位深度转换(1 / 2 / 4 / 8 / 16 位 PNG)Convert Image Bit Depth (1, 2, 4, 8 or 16-bit PNG)👾 图片复古配色(Game Boy / NES / C64 / PICO-8 调色板)Convert Image to Retro Colours (Game Boy, NES, C64, PICO-8)🧪 图片颜色通道分离(R / G / B / Alpha)Separate Image Colour Channels (R, G, B, Alpha)

← 全部工具All tools