Skip to main content
Inspiring
January 12, 2017
In Development

P: Camera Raw/Lightroom Classic/Lightroom Ecosystem: Support for WebP

  • January 12, 2017
  • 72 replies
  • 17008 views

I'm preparing a bunch of files for the web and would like to use Google's WebP format. How can I export photos in Lightroom to WebP?

72 replies

Inspiring
April 27, 2021

*jeremy_bowling Apple added WebP support to Safari 14 in September 2020. Most content management systems (WordPress, Drupal, etc.) lack native support for WebP.

DNG is completely open-source, but none of the major camera companies uses DNG. None of the major camera companies uses WebP either.

Better != successful.

Known Participant
April 20, 2021

WebP exists since 2010 and has an industry-standard for pictures on the web. Yet Adobe doesn't seem to bother. I cannot export them neither in LR nor PS. Yes, there are plugins for PS, but I do my bulk-exports for eventphotos in LR and have no need for PS for sports pictures (for example).

 

Programs like ACDSee support the webp-format, I still need to convert them after exporting. Pls Adobe implement that format in LR so I don't have to convert hundreds of pictures every time I exported them from LR.

Participating Frequently
August 6, 2022

Good suggestion, @johnrellis. Thanks! 

For everyone: if you are interested in following his suggestion, here is how to do it using Google WebpTools. 

Please note: the solution works for Windows only, as we need to create and use a DOS batch file. This DOS batch file will be executed after each of your EXPORT actions, and it will create a .WEBP converted version of your images in the same folder you exported the .JPEG one. 

 

1) download the Goole WebpTools and extract the zip file in a folder. Please extract the files in a folder that you are not going to change, otherwise the batch we are going to build in a few moments will need adjustments.

To simplify the explanation, I will assume that you extracted the files in a folder C:\WEBP, which therefore should contain the subfolders BIN, INCLUDE, LIB and the other files included in the Webp zip file.

The important thing is that in C:\WEBP\BIN you should have the CWEBP.EXE file. 

 

2) in C:\WEBP, create a new text file calling it CONVERT.BAT. Right click on it and select EDIT (with Windows 11, after right clicking you will first need to select "Show More Options" to see the EDIT menu item).
The file is normally opened with Notepad. 

 

3) simply copy in Notepad the following batch command, and then save the file. 

 

FOR %%x IN (%*) DO C:\WEBP\BIN\CWEBP.EXE -q 85 %%x -o "%%~dx%%~px%%~nx.webp"

 

What does it do? Well: the EXPORT feature of Lightroom will call this batch file passing him ALL the path of the images we have exported, one after one. 

And the FOR... DO loop will execute, for each of them, the CWEBP.EXE command, converting each image in WEBP format, and saving it in the same folder as the original image. 

The "85" you see is the QUALITY of the conversion. If you want a different quality, simply change that value. 

The strange %%~dx%%~px%%~nx.webp is used to remove from the path of the image the file extension (i.e. I need to get rid of ".JPEG"). As you can see, I am appending the ".WEBP" extension to it.

 

4) Now, let's configure Lightroom so that it executes that batch after each JPEG export. I think you already created a custom EXPORT Preset in Lightroom to export your images as JPEG, right? Otherwise please first create a JPEG export preset in Lightroom, a simple one is enought. 

Now in Lightroom go to FILE menu, then select "EXPORT...", left click on your preset, on the right part of the form go to the bottom section "Post processing", and in After Export select the "Open in Other Application..." option. 

Then click on "Choose..." button and browse to C:\WEBP, selecting the CONVERT.BAT we've just created.

 

IMPORTANT: before clicking on DONE, don't forget to RIGHT CLICK on your preset (in the left "Preset:" listbox) and select "Update with current settings", otherwise your recent changes to the preset will be lost.

Now you can click on "DONE". 

 

You're done.

 

To verify that everything is set correctly, reopen FILE\EXPORT..., select your preset, and verify in "Post-Procssing" that you see "Open in Other application" in After Export, and you see "C:\WEBP\BIN\CONVERT.BAT" in the "Application". 

 

Now you can select your images in Lightroom and then select the EXPORT preset we've just modified.
In the export folder, you will find both .JPEG and WEBP files. 

 

If you want to see what the CONVERT.BAT does, please simply add a PAUSE at the end of the CONVERT.BAT file.
Like this: 

FOR %%x IN (%*) DO C:\WEBP\BIN\CWEBP.EXE -q 85 %%x -o "%%~dx%%~px%%~nx.webp"
PAUSE

The batch will pause after the execution, so that you can read the information in the DOS screen where CWEBP is executed. Simply type ENTER and the DOS screen will close.

 

I hope it'll be helpful for you! Thanks again @johnrellis for suggesting that, I've never realized there was a "post processing" feature in the Export presets!

 

Bye,

A.-

 

 

 

 

 

Inspiring
March 9, 2021

@avpman  You are a Rock Star!!! Many thanks 

Known Participant
July 20, 2020
Should be fairly simple for Adobe to implement this. The WebP codec is opensource and readily available for a plethora of platforms. Even if people choose not to use it, format support is typically not in anyone's way. Just look at how many formats are supported by Photoshop.

If this doesn't get added very soon, shame on Adobe even more.
Known Participant
July 20, 2020
It doesn't matter which format is better. WebP recieves better support across the board, so that is the format web developers will prefer, simply by virtue of browser support. Which one is the absolute mathmatical best format, is completely irrelevant.
You might not remember the war between VHS and Betamax, which is the defacto example of format war, where the best one didn't win.
Participating Frequently
June 19, 2020
Safari won't be in any rush to support it because Apple standardised on the HEIC/HEIF format (HEVC-based).  Better compression and better quality.  WebP (and WebM) are a little long in the tooth by comparision (based on VP8), and its successors VP9 and AV1 are failing to live up to their promise of being unencumbered of patent issues (see patent troll Sisvel).  Looks like Apple made a good choice, or at least I'm more than happy with it.
Participating Frequently
June 19, 2020
You shouldn't have to pay for this because ImageMagick can do this for free.
Inspiring
June 19, 2020
I've successfully managed to get webp working on my site and I'm told that Google give these images preference, add that to speed improvement and you have significant SEO. For that reason alone webp will be a success so Lightroom needs to adapt to this a little faster than it is. I've had to create some script to check the browser and upload both JPG and WepP to account for the browsers that don't cover it (Safari would you believe!!!): Here's the gallery... https://charlessturge.com/corporate-photographer-london let me know if you'd like the html script and I'll post it. 
brauhausdc
Participating Frequently
June 1, 2020
Would love to see WEBP added in Lightroom and Bridge! 
Inspiring
May 4, 2020


When will we get support for webp on Lightroom CC?