The test image that was meant to be rotated was generated incorrectly. It now corresponds to the following ImageMagick command: $ convert in -rotate 90 -orient left-bottom out cargo test passes
cargo test passes