合并通过命令行工具,两个PNG文件在Windows? [英] Merge two pngs via command line tool in windows?

查看:252
本文介绍了合并通过命令行工具,两个PNG文件在Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个工具,我可以通过命令行(Windows 7)中使用合并两个同样大小的PNG图像。我并没有把与搜索多少运气迄今为止大多数的工具我见过的pretty重应用,这似乎并没有针对简单的操作。

I'm looking for a tool I can use via command line (windows 7) to merge two equally sized pngs. I'm not having much luck with search so far as most tools I've seen are pretty heavy applications which don't seem to target simple manipulations.

欲与覆盖图像中的非透明像素在不透明基本图像中覆盖的位。我的Photoshop CS4为好,但在寻找相关的命令行参数还没有多少运气。

I want to overwrite the bits in the opaque base image with the non-transparent pixels in the overlay image. I have photoshop CS4 as well, but haven't had much luck in finding the relevant command line arguments.

推荐答案

ImageMagick的呼吁的命令行工具复合材料,会做你想要什么。用于Windows,Mac,Linux的使用等发行我刚刚用两个透明的PNG测试它,按预期工作。

ImageMagick has a command line tool called composite which will do what you want. Distributions available for Windows, Mac, Linux etc. I've just tested it with two transparent PNGs and works as expected.

composite foreground.png background.png newimage.png

这篇关于合并通过命令行工具,两个PNG文件在Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆