Skip to main content
Sanpanza
Known Participant
September 23, 2023
Question

Batch Process images to WebP

  • September 23, 2023
  • 1 reply
  • 20252 views

How can I batch process hundreds of files to Webp format? I have been using PS for decades, and there is no native way that I can see of batch exporting images as Webp files.

 

I can do this in Lightroonas jpegs, but they are too large. Is there any way of batch converting 400 jpeg files to webp?

 

I tried batch processing for the first time after creating a "Save as Copy" script, but it made me go through each step manually and did not save time. Any thoughts on this matter would be greatly appreciated.  

1 reply

Stephen Marsh
Community Expert
Community Expert
September 23, 2023

Creating an action and using the batch command is the "standard native way", perhaps your action was set to "step by step" and not "accelerated" playback.

 

Anyway, I wrote a script for this:

 

Sanpanza
SanpanzaAuthor
Known Participant
September 24, 2023

OK, I did as you instructed:

 

Copied code into Mac text file set to txt and not rich text. 

Changed .txt extension to .jsx extension

I placed it into Adobe Photoshop 2024/Presets/Scripts

Tried to load the script because it does not show up in the image processor script menu.

But when I tried to load the script, it became a dead end. See examples. 

 

For some context, I know nothing about scripting or batch commands. I just need to get bunch of images into Webp format for my website.

 

Any thoughts?

 

 

Legend
April 9, 2024

On the Mac, I advise using BBEdit or a dedicated scripting IDE tool (not AppleScript Editor for ExtendScript JavaScript) to avoid such issues and to take advantage of more powerful text editing features. Granted this may be considered overkill by those only wishing to save code without editing it.


BBEdit has a free mode and is arguably the best text editor available on any platform. I highly recommend it to any Mac user.