Use the magic wand tool to select the area to colour correct. Then select the colour to change to by clicking the coloured square. Once that is done, use the paint bucket tool and click inside the selected area.
将光标放在图像上,右键单击 >选择>按颜色。单击颜色为 X 的区域(在本例中为蓝色)。将选择所有蓝色。然后右键单击>编辑>使用 FG 颜色填充(其中 BG 颜色将设置为颜色 Y)。完毕;所有 X 颜色现在更改为 Y 颜色。
2- 将 Z 颜色更改为透明背景
首先,通过选择图层 > 来确保图层中有 Alpha 通道。透明度>添加 Alpha 通道(如果该选项呈灰色,则说明已经有一个 Alpha 通道,无需进一步操作)。然后将光标放在图像上,右键单击>选择>按颜色。单击颜色为 Y 的区域(在本例中为白色)。将选择所有白色。然后右键单击>编辑>剪切。完毕;所有 Z 颜色现在都是透明的。
As other people have mentioned, you can do this in GIMP and googling helps :P. But suppose that you are not sure which terms to google, here are the steps:
1- Change X color to Y color foreground
Place cursor over the image, right-click > Select > By Color. Click on an area with color X (in this case blue). All blue color will be selected. Then right-click > Edit > Fill with FG Color (where BG Color will have been set to color Y). Done; all X color is now changed to Y color.
2- Change Z color to transparent background
First, make sure that there is an alpha channel in the layer by selecting Layer > Transparency > Add Alpha Channel (if the option is greyed out then there is already an alpha channel, no further action needed). Then place the cursor over the image, right-click > Select > By Color. Click on an area with color Y (in this case white). All white color will be selected. Then right-click > Edit > Cut. Done; all Z color is now transparent.
发布评论
评论(4)
我在使用 imagemagick 的“转换”之前已经这样做过,但我几乎不记得确切的咒语。谷歌来救援!
搜索“imagemagick 替换颜色”。其中一个链接是这样的:
http://studio.imagemagick。 org/pipermail/magick-users/2006-May/017672.html
基本上是这样的:
如果颜色准确,那么上面的应该可以做到。否则,请使用模糊选项:
示例:
这会将文件 b.png 中的颜色“#f2efe9”更改为红色,并将输出另存为 c.png
所有功劳均来自 google 搜索结果的 Anthony Thyssen。
至于设置透明度:
祝你好运!
I've done this before using imagemagick's 'convert' but I barely remember the exact incantation. Google to the rescue!
Search for "imagemagick replace color". One of the link is this:
http://studio.imagemagick.org/pipermail/magick-users/2006-May/017672.html
Basically it's something like this:
If the color is exact then the above should do it. Otherwise use the fuzz option:
Example:
That will change the color '#f2efe9' to red in the file b.png and save the output as c.png
All credit goes to Anthony Thyssen from the google search result.
As for setting the transparency:
Good luck!
当你标记你的问题时:gimp 是做到这一点的好工具。
As you taged you question: gimp is good tool to do that.
使用魔棒工具选择要校正颜色的区域。然后通过单击彩色方块选择要更改的颜色。完成后,使用油漆桶工具并在选定区域内单击。
另外,谷歌是你的朋友。
http://www.youtube.com/watch?v=uO-h7w2UNp4
Use the magic wand tool to select the area to colour correct. Then select the colour to change to by clicking the coloured square. Once that is done, use the paint bucket tool and click inside the selected area.
Also, Google is your friend.
http://www.youtube.com/watch?v=uO-h7w2UNp4
正如其他人提到的,您可以在 GIMP 中执行此操作,并且谷歌搜索会有所帮助:P。但假设您不确定要搜索哪些术语,请执行以下步骤:
1- 将 X 颜色更改为 Y 颜色前景
将光标放在图像上,
右键单击 >选择>按颜色
。单击颜色为 X 的区域(在本例中为蓝色)。将选择所有蓝色。然后右键单击>编辑>使用 FG 颜色填充(其中 BG 颜色将设置为颜色 Y)。完毕;所有 X 颜色现在更改为 Y 颜色。2- 将 Z 颜色更改为透明背景
首先,通过选择
图层 > 来确保图层中有 Alpha 通道。透明度>添加 Alpha 通道
(如果该选项呈灰色,则说明已经有一个 Alpha 通道,无需进一步操作)。然后将光标放在图像上,右键单击>选择>按颜色
。单击颜色为 Y 的区域(在本例中为白色)。将选择所有白色。然后右键单击>编辑>剪切。完毕;所有 Z 颜色现在都是透明的。As other people have mentioned, you can do this in GIMP and googling helps :P. But suppose that you are not sure which terms to google, here are the steps:
1- Change X color to Y color foreground
Place cursor over the image,
right-click > Select > By Color
. Click on an area with color X (in this case blue). All blue color will be selected. Thenright-click > Edit > Fill with FG Color
(where BG Color will have been set to color Y). Done; all X color is now changed to Y color.2- Change Z color to transparent background
First, make sure that there is an alpha channel in the layer by selecting
Layer > Transparency > Add Alpha Channel
(if the option is greyed out then there is already an alpha channel, no further action needed). Then place the cursor over the image,right-click > Select > By Color
. Click on an area with color Y (in this case white). All white color will be selected. Thenright-click > Edit > Cut
. Done; all Z color is now transparent.