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
-
title |
Beta Was this translation helpful? Give feedback.
Answered by
jcupitt
Jul 12, 2023
Replies: 1 comment 1 reply
-
Hi @FluffyDiscord, the docs are here: https://www.libvips.org/API/current/VipsForeignSave.html#vips-heifsave So perhaps: $image->writeToFile("x.avif", ["effort" => 9]);
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FluffyDiscord
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @FluffyDiscord, the docs are here:
https://www.libvips.org/API/current/VipsForeignSave.html#vips-heifsave
So perhaps:
.avif
filenames are always encoded with av1. You can use theencoder
param to set which AV1 encoder you prefer.