kornelski / avif-serialize

Minimal pure Rust AVIF writer (bring your own AV1 payload)
https://lib.rs/avif-serialize
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

After resizing avif image file size show same size as original file size #7

Closed Kevin301099 closed 9 months ago

Kevin301099 commented 9 months ago

no decreasing in file size after changing resolution of avif image

Screenshot 2023-09-16 at 2 57 33 AM
kornelski commented 9 months ago

This library is a low-level component, and isn't really responsible for image resizing.

If you're changed resolution using Apple's Preview.app, you may have edited DPI metadata instead of changing the image.

Kevin301099 commented 9 months ago

any suggestion ?

how to resize AVIF image in rust ?

baumanj commented 9 months ago

any suggestion ?

how to resize AVIF image in rust ?

Try https://crates.io/crates/image

Kevin301099 commented 9 months ago

ok, thank you.

kornelski commented 9 months ago

Oh, I think I know what you mean now: this library takes width and height. These properties are supposed to reflect what the size of AV1 data is, not change it.

See the https://lib.rs/ravif crate for encoding AV1 from scratch.