Skip to main content
Inspiring
January 12, 2017
Open for Voting

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

  • January 12, 2017
  • 返信数 67.
  • 16473 ビュー

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?

返信数 67

Known Participant
August 11, 2021

@JeffreyTranberry curious what happened to that idea/feature request you opened 5 years ago

Known Participant
August 11, 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.

Known Participant
June 9, 2021

The continued lack of official WEBP support in Lightroom is unacceptable

WEBP is highly efficient, delivering smaller filesizes for better quality than JPEG, all modern browsers support WEBP (including Safari) and as a result it's rapidly becoming the standard format for images on the web, replacing both JPEG and PNG.

Open source code for encoding and decoding of WEBP is easily found at https://developers.google.com/speed/webp/download

So there's no excuse really...

Adobe please give us the native tools we need to create content for the modern web!

Inspiring
April 27, 2021

@martijn_saly_5922019 DNG is also open-source, but none of the major camera companies uses DNG. Do you use DNG? None of the major camera companies uses WebP either.

Better != successful.

Inspiring
April 27, 2021

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

Better != successful.

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.