Image "pile" cutting off on edges
Posted: 2017-11-09T11:25:32-07:00
I'm using ImageMagick 6.9.9-22 Q16 on Linux. I'm trying to create an image that looks like a pile or stack of images. I'm using a variation of the command found at http://www.imagemagick.org/Usage/thumbnails/#polaroid :
This almost does what I want, but it's cutting off the left and right edges and I'm not sure why. How can I change this command so that it makes the resulting canvas as wide as is necessary?
Code: Select all
convert 0195.png \
-bordercolor none -background none -rotate $(convert null: -format '%[fx:rand()*30-15]' info:) +repage \
\( 0194.png -bordercolor none -background none -rotate $(convert null: -format '%[fx:rand()*30-15]' info:) +repage \) -gravity center -composite \
\( 0193.png -bordercolor none -background none -rotate $(convert null: -format '%[fx:rand()*30-15]' info:) +repage \) -gravity center -composite \
\( 0192.png -bordercolor none -background none -rotate $(convert null: -format '%[fx:rand()*30-15]' info:) +repage \) -gravity center -composite \
+repage -flatten +repage -background black \( +clone -shadow 60x4+4+4 \) +swap -background none -flatten stack.png