| Crates.io | turbojpeg |
| lib.rs | turbojpeg |
| version | 1.4.0 |
| created_at | 2021-05-02 11:12:14.900067+00 |
| updated_at | 2026-01-23 20:16:56.218349+00 |
| description | Fast and easy JPEG encoding, decoding and lossless transforms with TurboJPEG |
| homepage | https://github.com/honzasp/rust-turbojpeg |
| repository | https://github.com/honzasp/rust-turbojpeg |
| max_upload_size | |
| id | 392175 |
| size | 180,589 |
Rust bindings for TurboJPEG, which provides simple and fast operations for JPEG images:
image-rs (version 0.24)To quickly encode and decode images from the image crate (version
0.24), add this to the [dependencies] section in your Cargo.toml:
turbojpeg = {version = "1.0", features = ["image"]}
and then use the functions turbojpeg::decompress_image and
turbojpeg::compress_image.
For more advanced usage without the image crate, please see the
documentation.
The low-level binding to libturbojpeg is provided by the crate
turbojpeg-sys, which needs to link to the C library. Typically, you will need
CMake, a C compiler and NASM to build the library from source, but see its
README for details.
All contributions are welcome! Please contact me (@honzasp) or open a pull request. The main areas for improvement are:
turbojpeg-sys crate, so that it works
seamlessly on a wide range of systems.turbojpeg crate.This software is released into the public domain or is available with the MIT license (your choice).