Registry / utility / resize

resize

JSON →
library0.8.9rscratesunverified

Simple image resampling library in pure Rust.

# Cargo.toml [dependencies] resize = "0.8.9"
INSTALL
IMPORT
SIG · RESIZE
R
resize
utilityrustv0.8.9
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.

Resizer
✓ use resize::Resizer;

Resize an RGBA image from 100x100 to 200x200 using Lanczos3 filter

use resize::Resizer; fn main() { let mut resizer = Resizer::new(100, 100, 200, 200, resize::Type::Lanczos3, resize::Pixel::RGBA); let input = vec![0u8; 100 * 100 * 4]; let mut output = vec![0u8; 200 * 200 * 4]; resizer.resize(&input, &mut output).unwrap(); println!("Image resized"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
resize — cargo add resize · libregistry