convertion from avif is broken in NCONVERT v7.161

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

Moderator: xnview

dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

Code: Select all

nconvert.exe -out png -o "1.png" "1.avif"
** NCONVERT v7.161 (c) 1991-2023 Pierre-E Gougelet (Oct 3 2023/12:34:36) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)

my_error_exit...<Not a JPEG file: starts with 0x00 0x00>
Error: Don't know how to read this picture (1.avif)
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

Please try to download again the package, i've fixed it
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

xnview wrote: Wed Oct 04, 2023 7:04 am Please try to download again the package, i've fixed it
Thanks, it working now but for convertion from any format to avif nconvert still needs AVIFlib.dll, but since we have newer aom.dll can you plz make it work without AVIFlib.dll?
And I have now weird problem with converting files to jpeg-xl format on non unicode version (for unicode nconvert all fine) when it generating instead correct names something like "㼿㼿氿佄南卜卙䕔㍍尲䍖啒呎䵉ㅅ〴搮汬".

Code: Select all

nconvert.exe -32bits -out jpegxl -o rachel_.jxl -q 70 selfie5_4x.png
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

Please try to download again the package, i've fixed it :)
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

xnview wrote: Wed Oct 04, 2023 11:40 am Please try to download again the package, i've fixed it :)
Thanks, now all works fine.
Btw why there are 2 versions maintained unicode and not? Since unicode should be better why keep updating ansi version and make it as main, does unicode have any flaws/cons comparing to non unicode one?
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

in the future there will be only unicode version
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

Code: Select all

nconvert.exe -v -32bits -out avif -o "rachel.avif" -avif_speed 8 -avif_quant_color 0 25 30 -avif_quant_alpha 0 25 30 "selfie5_4x.png"
Bad argument -'avif_quant_color'
New day, new problem so far. Is nconvert avif quality commands from

Code: Select all

nconvert -help
not actual anymore? So to set avif quality now I need to use something like "-q 60"?
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

dedbombom wrote: Thu Oct 05, 2023 12:01 pm

Code: Select all

nconvert.exe -v -32bits -out avif -o "rachel.avif" -avif_speed 8 -avif_quant_color 0 25 30 -avif_quant_alpha 0 25 30 "selfie5_4x.png"
Bad argument -'avif_quant_color'
New day, new problem so far. Is nconvert avif quality commands from

Code: Select all

nconvert -help
not actual anymore? So to set avif quality now I need to use something like "-q 60"?
yes, now nconvert uses libheif an no more aviflib
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

Problem with convertion to avif arise in latest version (probably due broken avif plugins integration), with older version (7.230) there are no such problems:

Code: Select all

G:\NConvert-win64>nconvert.exe -32bits -v -out avif -o output.avif -q 65 -avif_speed 7 input.webp
** NCONVERT v7.300 (c) 1991-2026 Pierre-E Gougelet (Aug  4 2026/10:29:26) **
** This is freeware software (for non-commercial use)

A WebP (RGB) was recognized : input.webp
    Width:1920 Height:1080 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 5760
    xdpi : 0         ydpi : 0
Converting in 32bits : OK
  Error: Don't know how to write this picture (output.avif)

##########################Files opened: 1
Files written: 0
Files with write error: 1
P.S. Tested at Win10x64.
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

right i'll fix it
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

xnview wrote: Thu Aug 13, 2026 8:09 amright i'll fix it
Good, thx. Also wanna mention (maybe already did it before) issue that doesn't exist with other formats except avif, other tools like IM, libvips can handle such files without problems. If I try to convert fake webp for example which in real is in avif format nconvert is not able to read such file. But at same time nconvert without problem handles renamed webp to .png and .jpg for example but with if input format = avif it fails to read such renamed (to .webp) files:

Code: Select all

nconvert.exe -32bits -v -out webp -o output.webp -q 80 input.webp
** NCONVERT v7.230 (c) 1991-2026 Pierre-E Gougelet (Jan  9 2026/17:18:59) **
** This is freeware software (for non-commercial use)

  Error: Don't know how to read this picture (input.webp)

##########################Files opened: 0
Files with open error: 1
Files written: 0
User avatar
xnview
Author of XnView
Posts: 48611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: convertion from avif is broken in NCONVERT v7.161

Post by xnview »

Please try the 7.301
dedbombom
Posts: 42
Joined: Tue May 18, 2021 3:22 pm

Re: convertion from avif is broken in NCONVERT v7.161

Post by dedbombom »

xnview wrote: Fri Aug 14, 2026 8:16 am Please try the 7.301
Thx. it fixed viewtopic.php?p=216163#p216163
Btw you forgot to change version at download page to 301 https://www.xnview.com/en/nconvert/