cutting picture and resamble the pieces
Posted: 2010-07-28T09:50:25-07:00
Hello,
I would like to cut pictures into pieces and then assemble the pieces randomly into a new picture with the same size and dimension of the original picture. Unfortunately, I could not find an appropriate command.
So I tried to use
and tried to write a shell script for assembling the pieces which is pretty harsh since it has to be taken care of that no piece will be used more than once and I would also like to rotate the pieces every now and then.
But I am pretty sure that ImageMagick already provides a command to do this job.
Does anyone have a hint for me?
Thank you very much in advance!
Hannes
I would like to cut pictures into pieces and then assemble the pieces randomly into a new picture with the same size and dimension of the original picture. Unfortunately, I could not find an appropriate command.
So I tried to use
Code: Select all
convert testorig.png -crop 25% test_%d.png
Code: Select all
convert \( test_0.png test_2.png test_4.png test_6.png +append \) \( test_1.png test_3.png test_5.png test_7.png +append \) \( test_8.png test_10.png test_12.png test_14.png +append \) \( test_9.png test_11.png test_13.png test_15.png +append \) -append testf2.png
Does anyone have a hint for me?
Thank you very much in advance!
Hannes