我首先绘制一个带有列的宽透明图像,效果很好。
convert -size 5568x1920 xc:none iphone6plus.png
convert iphone6plus.png -strokewidth 0 -fill lightgray -draw "rectangle 1080,0 1121,1920 " iphone6plus.png
convert iphone6plus.png -strokewidth 0 -fill lightgray -draw "rectangle 2202,0 2243,1920 " iphone6plus.png
convert iphone6plus.png -strokewidth 0 -fill lightgray -draw "rectangle 3324,0 3365,1920 " iphone6plus.png
convert iphone6plus.png -strokewidth 0 -fill lightgray -draw "rectangle 4446,0 4487,1920 " iphone6plus.png
然后我正在旋转另一个图像,再次正常工作。
convert /en-US/iPhone6Plus-main_start_multi_child.png \
-rotate -2 \
iphone6plus-new.png
但是,我正在尝试将第二个(旋转图像)插入到特定位置/大小的第一个图像中。我遇到了问题,我尝试了几件事,最接近的似乎覆盖了源图像。
convert iphone6plus.png \
-geometry 40x40+5+10 \
-composite \
iphone6plus-new.png
我应该使用什么?
另外我应该如何提高这个操作的速度。
编辑:问题如下所示...
convert -size 5568x1920 xc:none -strokewidth 0 -fill lightgray \
-draw "rectangle 1080,0 1121,1920 " \
-draw "rectangle 2202,0 2243,1920 " \
-draw "rectangle 3324,0 3365,1920 " \
-draw "rectangle 4446,0 4487,1920 " \
\( iPhone6Plus-main_start_multi_child.png -background transparent -rotate -2 -gravity center -resize 1473x755 \) \
-geometry -190-50 \
\( iPhone6Plus-test_multi_child.png -background transparent -gravity center -resize 1473x755 \) \
-geometry +2000-50 \
-composite iphone6plus-new.png
convert -size 5568x1920 xc:none -strokewidth 0 -fill lightgray \
-draw "rectangle 1080,0 1121,1920 " \
-draw "rectangle 2202,0 2243,1920 " \
-draw "rectangle 3324,0 3365,1920 " \
-draw "rectangle 4446,0 4487,1920 " \
\( iPhone6Plus-test_multi_child.png -background transparent -gravity center -resize 1473x755 \) \
-geometry +2000-50 \
-composite iphone6plus-new.png