Page 1 of 1

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

Posted: Fri Aug 19, 2022 10:22 pm
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.

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

Posted: Sun Aug 28, 2022 5:39 pm
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.

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

Posted: Mon Aug 29, 2022 1:52 pm
by xnview
it will be fixed in next version

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

Posted: Fri Sep 02, 2022 8:11 am
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?

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

Posted: Tue Jan 03, 2023 10:44 am
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.