I am trying to create a script that splits any input image into 4 different parts (2x2).
I tried the following:
convert "$1" -crop 50%x50% +repage output%d.jpg
With some input images it generates the following files as expected and they are correctly split:
output0.jpg
output1.jpg
output2.jpg
output3.jpg
However with some other input images it only creates 3 output files. It actually never creates the the 4th quarter.
Could this be a bug or should I use another way for achieving this?