Suppose I have a black canvas of 512x512 size
convert -size 512x512 canvas:black black.png
Now I rotated it to get another images
convert black.png -rotate 30 black-rotated-30degree.png
Now my aim is to cut out biggest black square from this rotated image .
How can I do that ?
It tried to take image center and cut square around it but am not sure what should be the size of biggest black square or whether it is correct way ?
Images are not being shown in the post
Please see .
http://ibb.co/cLsbo9
http://ibb.co/nmkJ1U
http://ibb.co/b2tMMU