Registry / utility / fast-image-resize

fast-image-resize

JSON →
library6.0.0rscratesunverified

Library for fast image resizing using SIMD instructions for performance.

# Cargo.toml [dependencies] fast_image_resize = "6.0.0"
INSTALL
IMPORT
SIG · FAST-IMAGE-RESIZE
F
fast-image-resize
utilityrustv6.0.0
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.

Image
✓ use fast_image_resize::images::Image;

Resizes an image from 800x600 to 400x300.

use fast_image_resize::images::Image; use fast_image_resize::resizer::Resizer; use fast_image_resize::pixels::PixelType; fn main() { let src = Image::new(800, 600, PixelType::U8x3).unwrap(); let mut dst = Image::new(400, 300, PixelType::U8x3).unwrap(); let mut resizer = Resizer::new(); resizer.resize(&src, &mut dst, None).unwrap(); println!("Resized from {}x{} to {}x{}", src.width(), src.height(), dst.width(), dst.height()); }
Debug
Known issues
gotchaSIMD support requires enabling the appropriate feature (e.g., `sse`, `avx2`) and a compatible CPU.
fix
Enable features like `sse` or `avx2` in Cargo.toml and ensure the target CPU supports them.
affects: >=6.0.0
Upgrade
Version history
6.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fast-image-resize — cargo add fast-image-resize · libregistry