Why do you expect IM to understand that you want things done in a particular order, when you don't tell IM the right order to do thing in.
You can't crop and add borders to an image that you have not read.
In fact IM probably should throw an error (or at least a warning).
But being the responsible program it is it justs trys its best to do what you asked.
What it did was a 'legacy mode' for backward compatibilty.
IM Examples, Legacy Mode
http://www.imagemagick.org/Usage/basics/#legacy
Just save up all the options, and do them when an image had been finally given.
This is a throw back to the bad old IM version 5 days, where this try of thing happened all the time.
If your READ in the image BEFORE you operate on it, it will work as expected...
Code: Select all
convert \
in.jpg \
-crop +0+100 \
-bordercolor silver \
-border 10 \
out.jpg
and all will be done in the order you expect because you gave it in the order YOU want it to be done in.