ImageMagick:附加时删除输入文件?
当我尝试时
magick mogrify +append 1.jpg 2.jpg 3.jpg
,收到一条错误消息:“mogrify:无法打开 3.jpg”。有没有办法自动删除这两个输入文件?
When I try
magick mogrify +append 1.jpg 2.jpg 3.jpg
I get an error saying: "mogrify: unable to open 3.jpg". Is there a way to automatically delete the two input files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了清楚地将评论整理在一起...
您可以并排附加3张图像,如果命令这样成功,则删除输入映像:
顺便说一句,
在牙齿上很长,有一个更新的,更有用的操作员,称为
+/- smush
,其工作原理与+/-- append
完全相同允许您使用+Smush
版本创建差距,并与-Smush
版本重叠:Just collating the comments together for clarity...
You can append 3 images side-by-side, and remove the input images if the command succeeds like this:
By the way,
+append
is quite long in the tooth and there is a more recent, more useful operator called+/-smush
which works exactly the same as+/-append
but allows you to create a gap with the+smush
version and an overlap with the-smush
version: