在windows中的imagemagick蒙太奇多个瓷砖

问题描述 投票:0回答:1

假设我有很多jpg文件都有这种格式:X-Y.jpg而X和Y是从0到99的数字,并且还定义了自己在最终图像中的位置。

现在我已经尝试过这个命令从那些瓷砖中创建一个图像。

montage.exe -tile 99x99 @D:\img\list.txt D:\output\out.jpg

但它没有正确扩展我的图像文件列表。

montage.exe: unable to open image '@D:D:\input\0-59.jpg': Invalid argument @ error/blob.c/OpenBlob/3489.

以下是imagemagick手册的参考资料,其中表示对于大量文件,您可以通过“@ in.txt”读取特定文件中的输入文件列表:http://www.imagemagick.org/script/command-line-processing.php#input

windows command-line imagemagick
1个回答
1
投票
  1. 将文件名放在list.txt中,不带任何前置目录。
  2. 将list.txt文件放入所有切片所在的文件夹中
  3. 打开cmd并使用所有tile和list.txt切换到目录
  4. montage -tile 63x63 @ list.txt out.jpg

感谢来自https://www.imagemagick.org/discourse-server的用户snibgo帮我提示。

© www.soinside.com 2019 - 2024. All rights reserved.