Closed dAvagimyan closed 4 months ago
Hey @dAvagimyan, can you check what AVIF library your libvips build is built against, and check the latest libvips documentation for the parameters you can give? Sometimes we have stale parameters as libvips and/or the avif library libvips uses are updated and the govips API is out of date.
vips version: vips-8.15.1
heif-enc --list-encoders
HEIC encoders:
AVIF encoders:
- aom = AOMedia Project AV1 Encoder 3.8.2-377-g04d6253 [default]
- svt = SVT-AV1 encoder v1.8.0
JPEG encoders:
- jpeg = libjpeg-turbo 1.2.90 (libjpeg 6.2) [default]
JPEG 2000 encoders:
Uncompressed encoders:
- uncompressed = uncompressed [default]
Yes, could you look at libvips documentation for the parameters you can give? Sometimes the libvips backend has changed or the parameters and govips needs to be updated. Libvips has an impressive speed of development and backend libraries differ even between environments, it's very challenging to maintain govips APIs
Thanks, I'll take a look. But I tried got it behavior in differents os. (centos 7, ubuntu, also macos)
Everything is ok! Thanks a lot. Avif conversion in console using quality 50%.
Hi there! I'm using govips to convert jpg to avif. And I discovered that conversion from code works worse for me than conversion from the console. Could you help me figure it out? On large files the difference is 3 times. There is no such behavior with webp conversion
I tried effort with different values also with default cnf NewAvifExportParams()
size -> 1327450 -> cats.jpg - original size ->1003222 -> cats.avif - via go code size -> 404594 -> cats_inconsole.avif - via console (vips copy cats.jpg cats.avif )
It is golang code
it is origin;![cats](https://github.com/davidbyttow/govips/assets/18144616/ebfd2e45-a5f8-4d34-997d-8e87e6f0baa5)