🔀 图片 RGB 通道重排(BGR / GBR 等互换)Reorder RGB Channels in an Image
交换或轮换图片的红、绿、蓝三个颜色通道:BGR(红蓝互换,修正 OpenCV 等程序导出的偏色图片)、RBG、GRB、GBR、BRG,也可以给每个输出通道单独指定来源或反相。逐像素精确,透明度保持不变,支持批量,图片只在浏览器本地处理。Swap or rotate the red, green and blue channels of an image — BGR (swap red and blue, which fixes colour-swapped images from OpenCV and similar programs), RBG, GRB, GBR or BRG — or choose the source of each output channel yourself, with optional inversion. Every pixel is moved exactly, transparency is kept, it works in bulk, and images are processed locally in your browser.
使用说明与常见问题How-to & FAQ
「图片 RGB 通道重排(BGR / GBR 等互换)」是什么?What is the Reorder RGB Channels in an Image tool?
交换或轮换图片的红、绿、蓝三个颜色通道:BGR(红蓝互换,修正 OpenCV 等程序导出的偏色图片)、RBG、GRB、GBR、BRG,也可以给每个输出通道单独指定来源或反相。逐像素精确,透明度保持不变,支持批量,图片只在浏览器本地处理。Swap or rotate the red, green and blue channels of an image — BGR (swap red and blue, which fixes colour-swapped images from OpenCV and similar programs), RBG, GRB, GBR or BRG — or choose the source of each output channel yourself, with optional inversion. Every pixel is moved exactly, transparency is kept, it works in bulk, and images are processed locally in your browser.
如何使用「图片 RGB 通道重排(BGR / GBR 等互换)」?How do I use the Reorder RGB Channels in an Image tool?
在「图片 RGB 通道重排(BGR / GBR 等互换)」中,选择或拖入文件,按需设置「通道顺序」、「输出 R ←」、「输出 G ←」、「输出 B ←」、「输出格式」等选项,然后点击每个结果旁的「下载」按钮即可;有多个文件时也可以点「全部下载(ZIP)」一次打包下载。In the Reorder RGB Channels in an Image: Choose or drop your files, set "Channel order", "Output R ←", "Output G ←", "Output B ←", "Format", then click the Download button next to each result (with several files, "Download all (ZIP)" saves them together).
什么时候需要交换 RGB 通道?When do I need to swap channels?
最常见的是 BGR 问题:OpenCV、部分相机 SDK 和游戏引擎按 蓝-绿-红 的顺序存储像素,直接保存或显示时人脸发蓝、天空发橙,用“BGR(红蓝互换)”即可还原。其他顺序常用于做艺术色彩效果,或检查某个通道是否装错了数据。The most common case is the BGR problem: OpenCV, some camera SDKs and game engines store pixels as blue-green-red, so saved or displayed images show blue faces and orange skies — BGR (swap red and blue) fixes it. The other orders are used for artistic colour effects or to check whether a channel holds the wrong data.
自定义模式怎么用?How does Custom work?
为输出的 R、G、B 分别选择来源:原图的 R、G、B 通道之一,或固定的 0 / 255。例如 R←G、G←0、B←255 会把绿色通道放进红色、清空绿色、把蓝色填满。勾选“反相”会再把结果取反(255 − 值)。透明度(Alpha)始终保持原样。Choose a source for each output channel: one of the original R, G or B channels, or a constant 0 or 255. For example R←G, G←0, B←255 puts green into red, empties green and fills blue. Invert then flips the result (255 − value). Transparency (alpha) is always left unchanged.
有哪些选项可以调整?What options can I adjust?
「图片 RGB 通道重排(BGR / GBR 等互换)」的设置:「通道顺序」可选 BGR(红蓝互换)、RBG(绿蓝互换)、GRB(红绿互换)、GBR(向左轮换)、BRG(向右轮换)、RGB(不变)等(默认 BGR(红蓝互换));「输出 R ←」可选 R、G、B、0、255(默认 R);「输出 G ←」可选 R、G、B、0、255(默认 G);「输出 B ←」可选 R、G、B、0、255(默认 B);「输出格式」可选 PNG、JPG、WebP(默认 PNG);「质量」默认 92,范围 40–100;可勾选:「反相」;可选文件:常见图片格式(含 HEIC、HEIF、AVIF、WEBP、BMP、JFIF)。改动任一选项后结果会按新设置重新生成。Settings in the Reorder RGB Channels in an Image — "Channel order": BGR (swap red and blue), RBG (swap green and blue), GRB (swap red and green), GBR (rotate left), BRG (rotate right), RGB (unchanged), etc. (default BGR (swap red and blue)); "Output R ←": R, G, B, 0, 255 (default R); "Output G ←": R, G, B, 0, 255 (default G); "Output B ←": R, G, B, 0, 255 (default B); "Format": PNG, JPG, WebP (default PNG); "Quality" default 92, range 40–100; tick boxes: "Invert"; files: common image formats (including HEIC, HEIF…
图片会被上传到服务器吗?Are my images uploaded?
不会。「图片 RGB 通道重排(BGR / GBR 等互换)」使用浏览器 Canvas 在本地处理图片,处理后的文件直接从你的浏览器下载。No. The Reorder RGB Channels in an Image processes images locally with the browser Canvas API and the result downloads straight from your browser.
「图片 RGB 通道重排(BGR / GBR 等互换)」免费吗?需要注册吗?Is the Reorder RGB Channels in an Image free? Do I need an account?
「图片 RGB 通道重排(BGR / GBR 等互换)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Reorder RGB Channels 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.