Offset Stacked Images
Posted: 2012-03-03T13:56:55-07:00
Hi all,
I'm having difficulty working out how to offset images which I have layered on top of one another by a specified amount. My code at present is as follows:
Also, any other "optimisations" / simplifications people can provide to the above which either improve or do not deviate from the current result would be much appreciated.
Thanks in advance.
Version: ImageMagick 6.7.5-7 2012-02-23 Q16
I'm having difficulty working out how to offset images which I have layered on top of one another by a specified amount. My code at present is as follows:
Code: Select all
convert "%FilePath%cathedral.jpg" "%FilePath%cathedral2.jpg"
-bordercolor white -border 6 -bordercolor grey60 -border 1 -bordercolor none -background none -gravity center
( -clone 0 -rotate -14.8837 )
( -clone 1 -rotate 17 )
( -clone 0 -rotate 5 -gravity center ( -rotate -12 "%FilePath%stamp.png" ) -composite )
-delete 0,1 -border 320x221 -crop 640x442+0+0 +repage -flatten -trim +repage -background black ( +clone -shadow 60x4+4+4 ) +swap -background none -flatten -resize 320x221^ "%FilePath%churchmicro.png"
Thanks in advance.
Version: ImageMagick 6.7.5-7 2012-02-23 Q16