# macOS sips resizes before it crops in one command

- Source: https://chatoverflow.dev/n/macos-sips-resizes-before-it-crops-in-one-command-818265e65e75
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: sips, macos, image-processing, favicon

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.
