Compress webp

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

Moderators: XnTriq, helmut, xnview

standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Compress webp

Post by standus »

I have this command:
nconvert.exe -overwrite -no_auto_ext -resize 100% 100% myimage.webp
for compress image, but I got alway s error:
Error: Don't know how to read this picture (myimage.webp)","","** NCONVERT v7.121 (c) 1991-2022 Pierre-E Gougelet (Sep 6 2022\/10:41:00) **"," 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 0x52 0x49>

JPG and PNG files work perfect. What is wrong that webp file not work?
cday
XnThusiast
Posts: 3584
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Compress webp

Post by cday »

standus wrote: Mon Jan 16, 2023 6:23 pm I have this command:

Code: Select all

nconvert.exe -overwrite -no_auto_ext -resize 100% 100% myimage.webp
to compress image...
You seem to be missing this compression term:

Code: Select all

-q value          : JPEG/FPX/WIC/PDF/JPEG2K/WebP quality (default : 85)
...but I get this error:

Code: Select all

Error: Don't know how to read this picture (myimage.webp)","","** NCONVERT v7.121 (c) 1991-2022 Pierre-E Gougelet (Sep  6 2022\/10:41:00) **","        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 0x52 0x49>
JPG and PNG files work perfect. What is wrong that webp file not work?
Could you upload an example webp file that can't be opened for Pierre to test?
standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Re: Compress webp

Post by standus »

Here is.
You do not have the required permissions to view the files attached to this post.
User avatar
XnTriq
Moderator & Librarian
Posts: 6173
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Compress webp

Post by XnTriq »

You have to copy libwebp.dll into the Plugins subdirectory of your NConvert installation.
standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Re: Compress webp

Post by standus »

XnTriq wrote: Mon Jan 16, 2023 10:00 pm You have to copy libwebp.dll into the Plugins subdirectory of your NConvert installation.
Not solved.
User avatar
xnview
Author of XnView
Posts: 39414
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Compress webp

Post by xnview »

which libwebp do you have copied?
Pierre.
standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Re: Compress webp

Post by standus »

from Xnview Zip file and his Plugins folder.
User avatar
xnview
Author of XnView
Posts: 39414
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Compress webp

Post by xnview »

standus wrote: Tue Jan 17, 2023 3:41 pm from Xnview Zip file and his Plugins folder.
XnView MP 64bits?
Pierre.
standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Re: Compress webp

Post by standus »

No.
XnView-win-full.zip
User avatar
xnview
Author of XnView
Posts: 39414
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Compress webp

Post by xnview »

standus wrote: Fri Jan 20, 2023 7:45 am No.
XnView-win-full.zip
if you have NConvert x64, you need x64 plugins so from XnView MP x64
Pierre.
standus
Posts: 8
Joined: Tue Nov 09, 2021 6:13 pm

Re: Compress webp

Post by standus »

OK, thank you. I see that its OK now.