7 releases

0.2.5 May 27, 2025
0.2.4 May 26, 2025
0.2.3 Jan 27, 2025
0.1.0 Nov 17, 2024

#481 in Images

Download history 43/week @ 2025-09-11 40/week @ 2025-09-18 123/week @ 2025-09-25 44/week @ 2025-10-02 31/week @ 2025-10-09 57/week @ 2025-10-16 50/week @ 2025-10-23 15/week @ 2025-10-30 104/week @ 2025-11-06 12/week @ 2025-11-13 9/week @ 2025-11-20 53/week @ 2025-11-27 24/week @ 2025-12-04 19/week @ 2025-12-11 10/week @ 2025-12-18

55 downloads per month
Used in 3 crates (2 directly)

BSD-3-Clause OR Apache-2.0

395KB
7.5K SLoC

Fast image transpose

Fast and simple image rotating in Rust with flipping and flopping in-place and rotating by 180.

Supports:

  • Flipping ( Horizontal Mirror )
  • Flopping ( Vertical Mirror )
  • Transposing ( Rotate by 90 )
  • Rotate by 180
  • Rotate by 270

Adding to project

cargo add fast_transpose

Transpose RGB image

transpose_rgb(
    &img,
    &mut transposed,
    dimensions.0 as usize,
    dimensions.1 as usize,
    FlipMode::NoFlip,
    FlopMode::NoFlop,
)
.unwrap();

Features

Turning off unsafe feature will activate forbid unsafe mode.

This project is licensed under either of

  • BSD-3-Clause License (see LICENSE)
  • Apache License, Version 2.0 (see LICENSE)

at your option.

Dependencies

~140KB