Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

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

Moderators: XnTriq, helmut, xnview

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

Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

Post by dedbombom »

I'm using "AVIFlib.dll" and "libJPEGXL.dll" from XnView MP 1.01 and it allow me to convert with NConvert from png, jpg, web and etc. to jpeg-xl and avif without problems but back convertion (same files converted to jpeg-xl or avif earlier) NConvert don't converts back from jpeg-xl and avif to png, jpg, web and etc. showing that error:
nconvert -v -out png test.jxl
** NCONVERT v7.112 (c) 1991-2021 Pierre-E Gougelet (May 31 2022/14:43:37) **
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 0xff 0x0a>
Error: Don't know how to read this picture (test.jxl)

##########################Files opened: 0
Files with open error: 1
Files written: 0

nconvert -v -out png test.avif
** NCONVERT v7.112 (c) 1991-2021 Pierre-E Gougelet (May 31 2022/14:43:37) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)

Cannot open file for read: ????f?
my_error_exit...<Not a JPEG file: starts with 0x00 0x00>
Error: Don't know how to read this picture (test.avif)

##########################Files opened: 0
Files with open error: 1
Files written: 0

This command "nconvert -v -in jpegxl -out png -i test.jxl" also dont't work:
** NCONVERT v7.112 (c) 1991-2021 Pierre-E Gougelet (May 31 2022/14:43:37) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)

Error: Don't know how to read this picture (test.jxl)

##########################Files opened: 0
Files with open error: 1
Files written: 0

P.S. XnView MP and XnConvert works fine in this case but I need it to work in NConvert.
Last edited by dedbombom on Sun Aug 28, 2022 5:40 pm, edited 1 time in total.
dedbombom
Posts: 26
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

Post by dedbombom »

It's sad that still no help there but anyway I found out that libvips (Windows build) can convert using cmd (to and back) avif and jpeg-xl and with 1st one doing much faster and like nconvert (I'm not mention imagemagick coz it very slow at that) supports convertion directly from (and to) webp.
P.S. Still hope that it would be implemented in not so distant future.
User avatar
xnview
Author of XnView
Posts: 40595
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

Post by xnview »

it will be fixed in next version
Pierre.
dedbombom
Posts: 26
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

Post by dedbombom »

xnview wrote: Mon Aug 29, 2022 1:52 pm it will be fixed in next version
Thanks, can you plz also update avif, webp and jpeg-xl plugin dlls to latest versions because they are a bit outdated?
dedbombom
Posts: 26
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert from avif and jpeg-xl to png, jpg, webp and etc.

Post by dedbombom »

If using jpeg-xl plugin from XnView MP v1.4.0 with latest version nconvert it don't work (provides broken images), but plugin from any older XnView MP version works fine with current nconvert.