Skip to content

How do I specify AVIF to use AV1 and also how to specify the encoding "effort"? #209

Answered by jcupitt
FluffyDiscord asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @FluffyDiscord, the docs are here:

https://www.libvips.org/API/current/VipsForeignSave.html#vips-heifsave

So perhaps:

$image->writeToFile("x.avif", ["effort" => 9]);

.avif filenames are always encoded with av1. You can use the encoder param to set which AV1 encoder you prefer.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FluffyDiscord
Comment options

Answer selected by FluffyDiscord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants