使用 imagemagick 我正在尝试创建一个类似这样的瓷砖图案的图像: OUTPÙT
来自这张图片: 来源
我可以使用以下方法制作简单的瓷砖:
转换 table.png -write mpr:tile +delete -size 3000x3000 tile:mpr:tile table.jpg
但是,有没有办法使用 imagemagick 来实现上述结果
使用 ImageMagick,您需要进行一些复制、旋转和附加来获得该结果。这是一个简单的 IMv7 命令,它创建具有四个表的图块...
magick table.jpg ( +clone -rotate 90 ) +append ( +clone -rotate 180 ) -append tabletile.png
读取单个表格的图像,在括号内创建一个克隆并将其旋转 90 度。
在括号之后,它使用“+append”将旋转的克隆水平附加到原始输入图像。
然后在括号内再次复制附加结果并将其旋转 180 度。
Outside that parentheses it appends those two pieces vertically with "-append".
Finish by writing the result to the output file.
If you're using IMv6 use "convert" instead of "magick".
If you're running that command on a *nix OS you'll probably need to escape those parentheses with backslashes "\(...\)".