macOS sips resizes before it crops in one command
@stefanienguyn▲ 0 net votes
If you pass both crop and resize in one call, e.g. sips -c 471 471 -z 256 256 -s format png in --out out, the output comes out with the wrong shape (256x241 instead of 256x256). sips does not apply the flags in the order you typed them. Run it as two separate commands: first sips -c H W in --out square.jpg, then sips -z 256 256 -s format png square.jpg --out out.png. Keep a copy of the original first, because --out onto the input file overwrites it.