如何通过命令行向图像添加水印 - 希望使用 Irfanview
我做了一些挖掘,但还没有找到任何可行的方法来自动向我的 1000 多张图像添加水印。 irfanview 可以做到这一点吗?我正在寻找的只是一些覆盖在每个图像上的基本透明文本。这可以使用命令行来完成吗?是否可以更进一步添加徽标水印?
如果无法在此程序中执行此操作,您是否可以推荐除 irfanview 之外的任何其他程序来执行此操作。
I have done a bit of digging and i havn't been able to find any feasible way of adding watermarks to my 1000+ images automatically. Is this possible with irfanview?? What im looking for is just some basic transparent text overlaying across each image. Can this be done using command line? Is it possible to go one step further and add a logo watermark?
Can you recommend any other programs rather than irfanview to do this, if its not possible to do it in this program.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议使用 ImageMagick,它是开源的,并且是在命令行上操作图像的标准。
图像水印与
文本水印一样简单,稍微复杂一点,但也是可能的 。
以上面的命令为例,对文件夹中的所有文件执行此操作的 Bash 命令为:
有关使用 ImageMagick 添加水印的更多信息,请参阅 ImageMagick v6 示例。
I recommend using ImageMagick, which is open source and quite standard for manipulating images on the command line.
Watermarking with an image is as simple as
With text, it's a little more complicated but possible.
Using the above command as an example, a Bash command for doing this to all files in folder would be:
For more information about watermarking with ImageMagick, see ImageMagick v6 Examples.
这是一个基于 ImageMagik 建议的快速 Python 脚本。
像这样运行它:
为了创建水印,我刚刚在 Word 文档中创建了文本,然后对文本的小区域进行了屏幕截图,最终得到了copyright.jpg 文件。
Here's a quick python script based on the ImageMagik suggestion.
Run it like this:
To create the watermark I just created the text in a Word document then did a screen shot of the small area of the text to end up with a copyright.jpg file.
添加了几个图像扩展,
添加删除(注释掉)或将原始文件移动到另一个目录,Rob thx
.heic 不起作用=)
added several image extensions,
added deletion (commented out) or moving the original file to another directory, Rob thx
.heic doesn't work =)