打开主菜单
首页
随机
登录
设置
关于wrc's Wiki
免责声明
wrc's Wiki
搜索
更改
←上一编辑
下一编辑→
ImageMagick
(查看源代码)
2021年5月11日 (二) 08:20的版本
添加328字节
、
2021年5月11日 (二) 08:20
无编辑摘要
第23行:
第23行:
convert input.png -fill none -draw 'color 1,1 floodfill' output.png
convert input.png -fill none -draw 'color 1,1 floodfill' output.png
</syntaxhighlight>
</syntaxhighlight>
+
+
=== 只允许几种颜色 ===
+
+
<ref>https://stackoverflow.com/a/55965617/10974106</ref>
+
+
<syntaxhighlight lang=bash>
+
convert 'xc:#50c1c3' 'xc:#323232' 'xc:#f4891e' 'xc:#efefef' xc:'rgba(0,0,0,0)' +append palette.gif
+
convert input.png +dither -remap palette.gif output.png
+
</syntaxhighlight>
+
+
== 参考资料 ==
+
+
<references />
[[Category:Command Line]]
[[Category:Command Line]]
Weirane
行政员
、
管理员
528
个编辑