简体   繁体   English

在Windows中的imagemagick中蒙太奇多个磁贴

[英]Montage multiple tiles in imagemagick in windows

Let's say I have many jpg files which all have this format: XY.jpg while X and Y are numbers from 0 to 99 and also define the location of themselves in the final image. 假设我有许多jpg文件,它们的格式都为:XY.jpg,而X和Y是从0到99的数字,并且还定义了它们在最终图像中的位置。

Now I've tried this command to create one image out of those many tiles. 现在,我尝试使用此命令从许多图块中创建一个图像。

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

But it expands my image file list not correctly. 但是它无法正确扩展我的图像文件列表。

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

Here is a reference for the imagemagick manual, where it says for large numbers of files you can read a list of input files from a specific file by "@in.txt": http://www.imagemagick.org/script/command-line-processing.php#input 这是imagemagick手册的参考,其中指出对于大量文件,您可以通过“ @ in.txt”从特定文件中读取输入文件的列表: http : //www.imagemagick.org/script/command -line-processing.php#输入

  1. Put the filenames in the list.txt without any prepending directory. 将文件名放在list.txt中,不要添加任何前缀目录。
  2. Put the list.txt file into the folder where all tiles are located 将list.txt文件放入所有图块所在的文件夹中
  3. Open cmd and change to the directory with all the tiles and the list.txt 打开cmd并转到包含所有图块和list.txt的目录
  4. montage -tile 63x63 @list.txt out.jpg 蒙太奇-tile 63x63 @ list.txt out.jpg

Thanks to the user snibgo from https://www.imagemagick.org/discourse-server who helped me with a hint. 感谢来自https://www.imagemagick.org/discourse-server的 snibgo用户,他为我提供了提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM