updated example in readme

This commit is contained in:
Sander Hautvast 2022-01-24 22:38:16 +01:00
parent 12fa7dd703
commit 8287731952

View file

@ -6,7 +6,7 @@ https://observablehq.com/@tmcw/octree-color-quantization
inspired by to https://github.com/objectProfessionals/movieMaps
```
fn test_big_image() -> Result<(), ImageError> {
fn quantize_image() -> Result<(), ImageError> {
let src: RgbaImage = image::open("some_image.jpg").unwrap().into_rgba8();
let dest = quantize(&src, 256);
dest.save_with_format("output.jpg", image::ImageFormat::Jpeg)?;