在 windows 中的 imagemagick 中蒙太奇多个图块
Montage multiple tiles in imagemagick in windows
假设我有很多 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[=12=]-59.jpg': Invalid argument @ error/blob.c/OpenBlob/3489.
这是 imagemagick 手册的参考,它说对于大量文件,您可以通过“@in.txt”从特定文件读取输入文件列表:http://www.imagemagick.org/script/command-line-processing.php#input
- 将文件名放在 list.txt 中,不带任何前置目录。
- 将list.txt文件放入所有tile所在的文件夹
- 打开 cmd 并切换到包含所有图块和 list.txt
的目录
- 蒙太奇平铺 63x63 @list.txt out.jpg
感谢 https://www.imagemagick.org/discourse-server 的用户 snibgo 帮助我提示。
假设我有很多 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[=12=]-59.jpg': Invalid argument @ error/blob.c/OpenBlob/3489.
这是 imagemagick 手册的参考,它说对于大量文件,您可以通过“@in.txt”从特定文件读取输入文件列表:http://www.imagemagick.org/script/command-line-processing.php#input
- 将文件名放在 list.txt 中,不带任何前置目录。
- 将list.txt文件放入所有tile所在的文件夹
- 打开 cmd 并切换到包含所有图块和 list.txt 的目录
- 蒙太奇平铺 63x63 @list.txt out.jpg
感谢 https://www.imagemagick.org/discourse-server 的用户 snibgo 帮助我提示。