Converting to avif results in 0 byte files

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

misao
Posts: 8
Joined: Fri Sep 13, 2019 11:18 pm

Converting to avif results in 0 byte files

Post by misao »

Hello, I'm unable to convert files to avif format :(
I copied the plugins folder of XnViewMP and nconvert lists avif as a supported format.

Code: Select all

nconvert -out avif image.jpg
It seems to convert the image but...

Code: Select all

Encoded successfully.
 * ColorOBU size: 429817 bytes
 * AlphaOBU size: 0 bytes
...the actual file being saved is 0 bytes :|
Also, how do I specify quality? The -q option doesn't seem to do anything. It always says:

Code: Select all

Encoding with AV1 codec 'aom', color QP [0 (Lossless) <-> 0 (Lossless)], alpha QP [0 (Lossless) <-> 0 (Lossless)], 1 worker thread(s), please wait...
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Converting to avif results in 0 byte files

Post by xnview »

are you able to convert with XnView MP?
Pierre.
misao
Posts: 8
Joined: Fri Sep 13, 2019 11:18 pm

Re: Converting to avif results in 0 byte files

Post by misao »

Yes, no problem with XnViewMP.
I wanted to use NConvert in a batch file since avifenc doesn't support resizing and imagemagick doesn't support min/max quantizers.

XnViewMP supports avif, speed, resizing and min/max quantizers. 8)
It would be great if it would work with NConvert too.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Converting to avif results in 0 byte files

Post by xnview »

ok, will be added
Pierre.