Error shows when I use command like avifenc --ignore-exif --ignore-xmp sample.jpg -o sample.avif in latest release version(1.3.0):
The image contains a gray ICC profile which is incompatible with the requested output format YUV (color). Pass --ignore-icc to discard the ICC profile.
It works correctly (generate a yuv 400 avif) if add -y 400 for the grayscale image, or in any version older than 1.2.1.
I think it's related to these commits: #2675. It's quite a breaking change of default behavior😰, using the default output format is much more convenient for images with various color modes.