Crate img2avif

Crate img2avif 

Source

Functionsยง

convert
Converts the input file to AVIF format using default quality (85) and speed (6).
convert_with_max_size
Converts the input file to AVIF format, attempting to stay below a maximum file size. It iteratively reduces quality based on the stride until the size constraint is met or quality reaches 0.
convert_with_quality_speed
Converts the input file to AVIF format with custom quality and speed parameters.