Page 1 of 1
Issue with converting from WEBP to JPG
Posted: Tue Nov 05, 2024 10:14 pm
by stormbreaker
Hi there,
I'm using nconvert (commercial version) in my company project for all sort of conversion between image format, sizes, quality, etc. I have received another case where WEBP files has to be converted into JPG. I went through the documentation and guessed that it should be fairly easy to do so. Buuuut as simple as command is I receiving failures.
I'm runnnig nconvert on k8s. I'll paste all the information I have.
- Docker base image: eclipse-temurin:21.0.2_13-jre-jammy
- Command: /opt/NConvert/nconvert -out jpeg -q 80 -rmeta -icc -resize longest 1600 -rtype lanczos -o /tmp/workspace13699137917448842041/converted/image01.jpg '/tmp/workspace13699137917448842041/image01.webp'
- Result: Error: Don't know how to read this picture (/tmp/workspace13699137917448842041/image01.webp)\n\n** NCONVERT v7.192 (c) 1991-2024 Pierre-E Gougelet (Aug 27 2024/09:35:32) **\n Version for Linux x86 (X11) (All rights reserved)\n** This is freeware software (for non-commercial use)\n\n
- Plugins (in Plugins folder): libsharpyuv.so libwebp.so libwebp.so.7 libwebpdecoder.so libwebpdemux.so libwebpmux.so openjp2.so
I would expect that it should work but apparently something is wrong. Can i get some help with this, please?
Re: Issue with converting from WEBP to JPG
Posted: Wed Nov 06, 2024 9:56 am
by xnview
could you send us the file?
Re: Issue with converting from WEBP to JPG
Posted: Wed Nov 06, 2024 10:06 am
by stormbreaker
Re: Issue with converting from WEBP to JPG
Posted: Thu Nov 07, 2024 8:05 am
by xnview
you need to execute nconvert from /opt/NConvert/ folder
Re: Issue with converting from WEBP to JPG
Posted: Thu Nov 07, 2024 9:18 am
by stormbreaker
I've tried this too, no luck though. Same error as previously
Re: Issue with converting from WEBP to JPG
Posted: Thu Nov 07, 2024 1:46 pm
by xnview
from a shell, it works correctly

Re: Issue with converting from WEBP to JPG
Posted: Thu Nov 07, 2024 1:49 pm
by stormbreaker
Did you try with Docker (eclipse-temurin:21.0.2_13-jre-jammy)?
Re: Issue with converting from WEBP to JPG
Posted: Thu Nov 07, 2024 2:48 pm
by xnview
stormbreaker wrote: Thu Nov 07, 2024 1:49 pm
Did you try with Docker (eclipse-temurin:21.0.2_13-jre-jammy)?
no, currently i can't try with docker
Re: Issue with converting from WEBP to JPG
Posted: Tue Nov 12, 2024 11:02 pm
by mdnava
stormbreaker wrote: Tue Nov 05, 2024 10:14 pm
Hi there,
I'm using nconvert (commercial version) in my company project for all sort of conversion between image format, sizes, quality, etc. I have received another case where WEBP files has to be converted into JPG. I went through the documentation and guessed that it should be fairly easy to do so. Buuuut as simple as command is I receiving failures.
Pierre, in case is of any use, I tried it on Windows Subsystem for Linux (WSL) and it seems to also fail:
Code: Select all
$ mkdir test; cd test
$ wget https://i.ibb.co/NnrjzLh/image01.webp
$ wget https://download.xnview.com/NConvert-linux64.tgz
$ tar -xvzf NConvert-linux64.tgz
$ ./NConvert/nconvert -out jpeg -q 85 -rmeta -icc -resize longest 1600 -rtype lanczos -o ./new.jpg ./image01.webp
** NCONVERT v7.192 (c) 1991-2024 Pierre-E Gougelet (Aug 27 2024/09:35:32) **
Version for Linux x86 (X11) (All rights reserved)
** This is freeware software (for non-commercial use)
Error: Don't know how to read this picture (./image01.webp)
On Windows it works fine..
[Added 2024-11-12 19:12:]
I also tried (in WSL) to convert from a different .webp file, and to other formats, but no success:
Code: Select all
$ ./NConvert/nconvert -out png -rmeta -icc -resize longest 1600 -rtype lanczos -o ./new.jpg ./mntest.webp
** NCONVERT v7.192 (c) 1991-2024 Pierre-E Gougelet (Aug 27 2024/09:35:32) **
Version for Linux x86 (X11) (All rights reserved)
** This is freeware software (for non-commercial use)
Error: Don't know how to read this picture (./mntest.webp)
$ ./NConvert/nconvert -out jpegli -q 85 -rmeta -icc -resize longest 1600 -rtype lanczos -o ./new.jpg ./mntest.webp
Bad output format 'jpegli'
@Stormbreaker:
In case is relevant, converting images with plain red color to JPEG can easily get them noticeable compression artifacts.
One way to minimize artifacts is to use JPEG quality of 90 or higher. Or to leave/use them as WEBP.
Re: Issue with converting from WEBP to JPG
Posted: Wed Nov 13, 2024 8:03 am
by xnview
you need to execute it by ./nconvert
Re: Issue with converting from WEBP to JPG
Posted: Wed Nov 13, 2024 12:09 pm
by mdnava
xnview wrote: Wed Nov 13, 2024 8:03 am
you need to execute it by ./nconvert
Hello Pierre!
Like this?.. it seems to also fail (at least in WSL)..
(Please note that I don't normally use NConvert on any Linux, I just read the post and thought I'd test it).
Code: Select all
$ cd NConvert
$ ./nconvert -out png -rmeta -icc -resize longest 1600 -rtype lanczos -o ../new.jpg ../image01.webp
** NCONVERT v7.192 (c) 1991-2024 Pierre-E Gougelet (Aug 27 2024/09:35:32) **
Version for Linux x86 (X11) (All rights reserved)
** This is freeware software (for non-commercial use)
Error: Don't know how to read this picture (../image01.webp)
Best regards!