通过批处理文件将图像转换为透明部分的黑色部分 [英] Convert black parts of an image to transparent parts by batch file
问题描述
家伙我是一个漫画家与他们中的一些需要转换的图像透明部分的黑色部分的纹理工作,它真的无聊坐下来,整天用photoshop做我不能用它做批处理文件?TNX。
Hi guys I'm an animator working with textures that some of them need to Convert black parts of an image to transparent parts and it's really boring to sit and all the day do it with photoshop can't I do it with a batch file?tnx.
推荐答案
另一种方法是使用这2个命令:
Another Way is to use these 2 commands :
这将在每行一个像素(以十六进制值)分解你的形象。
This will decompose your image in one pixel (in Hexa value) per line.
然后就可以解析输出文件并替换每个 ALPHA CHANEL
从 FF
到 00
(000000FF到00000000黑 - >透明)
Then you can parse the output file and replace each ALPHA CHANEL
from FF
TO 00
(000000FF to 00000000 for BLACK -> Transparent)
,然后重建它
这些例子是法语,但如果你有一些问题,我可以让你在英语的例子。
These examples are in FRENCH but if you have some problem I can make you an example in English.
您可以建立您在使用这些命令BAT是自己的过滤器。
You can build you're own filters in BAT with these commands.
当然ImageMagick的解决方案更容易(过滤器已经完成!)。但是,如果你想使自己的过滤器(隐写,灰度级,...)这呆了很好的解决。
Sure the imageMagick solution is easier (the filter is already done !). But if you want to make your own filters (steganographic, gray level,...) It stay a very good solution.
下载地址: https://goo.gl/614NH8
这篇关于通过批处理文件将图像转换为透明部分的黑色部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!