0
我有一个尺寸为4000 * 4000的大尺寸图像。我想进行的图像上的各种操作:如何有效连接ImageMagick并转换命令以生成图像no
convert a.jpg -crop [email protected] +repage +adjoin tile_6_%d.jpg
convert a.jpg -crop [email protected] +repage +adjoin tile_9_%d.jpg
convert a.jpg -crop [email protected] +repage +adjoin tile_3_%d.jpg
convert a.jpg -resize 120x120 thumbnail.jpg
因而造就了一批36+81+9+1 = 127
我试图做类似
convert a.jpg \
\(+clone -resize 66% -crop [email protected] +repage +adjoin -write tile_6x6_%d.jpg +delete \) \
\(+clone -resize 33% -crop [email protected] +repage +adjoin -write tile_3x3_%d.jpg +delete \) \
\(+clone -crop [email protected] +repage +adjoin -write tile_9x9_%d.jpg +delete \) \
-density 150 -quality 50 -resize 120x120 thumbnail.jpg
但是,这并不正常工作所需并产生大约250个文件。这里有什么问题?连接所有这些命令的最佳方式是什么?