Registry / other / mozjpeg-sys

mozjpeg-sys

JSON →
library2.2.3rscratesunverified

FFI bindings for MozJPEG v4, automatically built and linked statically.

# Cargo.toml [dependencies] mozjpeg-sys = "2.2.3"
INSTALL
IMPORT
SIG · MOZJPEG-SYS
M
mozjpeg-sys
otherrustv2.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compress_image
use mozjpeg_sys::*;

Minimal usage showing raw FFI call to MozJPEG compression.

use mozjpeg_sys::*; fn main() { unsafe { let mut cinfo: jpeg_compress_struct = std::mem::zeroed(); // ... setup and compress } }
Debug
Known issues
gotchaRequires nasm and a C compiler installed on the system to build.
fix
Install nasm and a C compiler (e.g., gcc, clang) before building.
affects: >=0.0.0
Upgrade
Version history
2.2.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
9
Resources
mozjpeg-sys — cargo add mozjpeg-sys · libregistry