Cykooz / fast_image_resize

Rust library for fast image resizing with using of SIMD instructions.
Apache License 2.0
284 stars 25 forks source link

resize-rgba8-image example uses a no longer supported function. #34

Closed SunnyWar closed 2 months ago

SunnyWar commented 2 months ago

https://docs.rs/fast_image_resize/latest/fast_image_resize/#resize-rgba8-image This line: let mut dst_image = Image::new( dst_width, dst_height, src_image.pixel_type().unwrap(), );

pixel_type() is not longer supported in the image crate.

Cykooz commented 2 months ago

It is not from 'image' crate. 'pixel_type()' is method of fast_image_resize::IntoImageView trait.