I want to convert my photos from jpg, gif and png to WebP format! When I'm trying to use CMD for using cwebp command, I got this error message :
'cwebp'
is not recognized as an internal or external command, operable
program or batch file.
What should do I do ?
I've downloaded all the files needed such as libwebp-0.4.0-windows-x86.zip and WebpCodecSetup.exe (from this url : "https://code.google.com/p/webp/downloads/list").
even I've installed Visual Studio to use its command prompt, but didn't work !!!
Is there anyone can help me ??
One more questation:
Is anyone know any tool to reduce image size without lossing its quality ?
After you download cwebp binaries (.exe) from Google you can run it with PowerShell.
Copy and paste the code below in PowerShell and press enter to run it.
Read the comments in the snippet for more information.
After you download cwebp binaries (.exe) from Google you can run it with PowerShell.
Then add the bin directory to where you extracted the cwebp lib to your Windows PATH. This is something like this
C:\downloads\libs\LibWebP\bin
for example. If you don't know how to do this search for "how to add something to windows PATH". Here is an example link.If you need to go through each sub directory from the current directory you can do this below instead of pasting the path to the current directory in the script and doing so for each folder in the directory.