
In our example, this file is named webp.bat. Change the type of files shown in the dialogs file list from "Application Files (*.exe)" to "Application Files (*.*)" by left clicking on the dropdown box at the bottom right above the open button. For our example we navigate to our Downloads folder. Navigate to the folder where you saved the batch file in Step 3. Then press the "Add New" button at the bottom of the window. The "List Editor" dialog appears, scroll down to File Context Menu and left-click on it. Alternatively, you can click on the File menu and click on the third option which is "List Editor" Once you have downloaded, extracted, and opened EcMenu.exe or EcMenu_圆4.exe, depending on your system (32-bit or 64-bit), press Ctrl+E to open the "List Editor" dialog.
#Windows webp converter download#
You can download Easy Context Menu v1.6 here. This is the path to our saved batch file from step 3. Here is the command for our previous entry under the name Run \"%1\"" HKEY_CLASSES_ROOT*\shell\Run script\command The & symbol denotes which key on the keyboard the user can press to access this context-menu entry Here we have the name that shows in the context menu.
#Windows webp converter windows#
reg file that looks like this: Windows Registry Editor Version 5.00Īdds an entry into the context-menu for all files on the system named Run &script" If not, option 2 provides a safer way to modify your system.
#Windows webp converter how to#
If you are comfortable editing your systems registry, and you know how to create a backup of it, you may find option 1 suitable.

Step 4: Modify the System's Right Click context menu for files This is the example path to our batch file: C:\Users\Administrator\Downloads\webp.bat In our example, the current user's downloads folder will be used and the file is named webp.bat. bat file extension in a location where the current user has permissions to access and execute it. Where -o tells cwebp to write out to a file, %~n1 prints the name of the original file without the file extension, to which we add our new extension. %1 is the first argument supplied to the batch file, in this case, it will be the file we selected and right-clicked in Windows Explorer. v Print extra information (encoding time in particular).įor more information on command line switches that you can use with cwebp, see Google's WebP Guide on cwebp mt Use multi-threading for encoding, if possible. sharpness 0 Sharpness range with 0 being the most sharp and 7 being the least sharp f 50 Deblocking filter (Smoothness) (0-100) 6 is the maximum so we get the smallest file size. m 6 The compression method with values ranging from 0 to 6. q 50 The "compression factor for RGB channels between 0 and 100" In this step we will be creating a batch file that looks something like this: cwebp -q 50 -m 6 -af -f 50 -sharpness 0 -mt -v -progress %1 -o %~n1.webpĬwebp This references a specific executable file located in our libwebp's bin folder that can convert images to webp. The location of libwebp's bin folder has now been added to your PATH (environment variable.) Step 3: Create a batch file that converts a file to. If the folder was extracted inside a user's download folder, and that user was named "Administrator", then the folder location string would look like the following: C:\Users\Administrator\Downloads\libwebp-1.1.0-windows-圆4\binĪfter ensuring the path is correct, press enter.Ĭlick OK on the "Edit Environment Variable" Dialog.Ĭlick OK on the "Environment Variables" Dialog.Ĭlick OK on the "System Properties" Dialog. Type or paste in the location of libwebp's bin folder that we extracted in Step 1. The Edit Environment Variable dialog opens.Ĭlick New on the top right to add an entry. Click the Edit button underneath the "User Variables for " list box.
In the "User Variables for " section at the top, left-click the list item that has "Path" listed in the Variable column. The "Environment Variables" dialog opens. Press the "Environment Variables." Button located after the Startup and Recovery section at the bottom right. The "System Properties" Dialog opens with the "Advanced" tab selected. Type the following: SystemPropertiesAdvanced Alternatively, right-click on the Start button and left-click on Run. Open the Run Dialog box by pressing WinKey+R. Step 2: Add libwebp's bin folder to your PATH (32-bit) Offical Download for libwebp Version 1.0.3Įxtract the folder to your preferred location and take note of the folder path so that we can use it in Step 2. (64-bit) Offical Download for libwebp Version 1.1.0 Step 1: Download and extract libwebp from Google reg file or a downloaded utility, such as Easy Context Menu, to add your batch file to the right-click context menu for files. Then, create a batch file that takes a file and runs it through cwebp with your preferred settings. This can be done by downloading the official cwebp command line encoder from Google, and then adding its bin folder to your PATH (environment variable).
