Skip to main content
Participant
September 22, 2022
Open for Voting

Generate Image Assets -> Webp

  • September 22, 2022
  • 17 replies
  • 2544 views

Photoshop now has webp image support, which is great, but it does not work when generating image assets using the File->Generate->Image Assets workflow. Presently, it just gives an error with 'Unsupported extension: webp".

 

Considering Adobe is advertising 'full support' for webp in photoshop, this seems like an oversight.

 

Please roll the webp functionality into the generate image assets workflow.

 

Why is it valuable to me:

WebP files are particularly useful for web development. The generate image assets workflow is also very web-dev friendly. I would be using this combo constantly if it were possible. Instead I have to slowly export-as my way around multiple documents. The current situation feels like stepping back in time.

 

17 replies

Participant
March 26, 2024

hello Paul, I'm also using Photoshop 2024 on an M1 Macbook. Did you copy the generator.js file to this directory  /Users/<UserName>/ (or some folder inside the Adobe photoshop??)

This doesn't seem to work for me. After restart, I'm still seeing the error.txt saying unsupported extension. 

paulsoultis
Participating Frequently
September 27, 2023

Amazing thanks mate, just tested and this is working perfectly. I was also able to add percentage value to optimise the WebP compression amount.

Known Participant
September 27, 2023

* Create a new txt file, copy this in there, save and close it:
module.exports = {
"generator-assets": {
"webp-enabled":true,
"webp-lossless":false,
}}

* rename your .txt file to generator.js
* save your generator.js file at this location and restart PS:

Windows     C:\Users\<UserName>
Mac            /Users/<UserName>/
paulsoultis
Participating Frequently
September 27, 2023

Thanks for the heads up, I'm using Mac and M1 and Generator config panel is noted to not be supported. Is there other ways to enable it?

Known Participant
September 25, 2023

Using PS 2024 on Windows it works for me now. Just needed to enable it within the Configuration Options.
https://github.com/adobe-photoshop/generator-assets/wiki/Configuration-Options#sample-configuration

paulsoultis
Participating Frequently
August 31, 2023

Hi all, any update on this request for webp support using generate?


Dhal_Naka
Inspiring
November 16, 2022

If you make a small change in this file

C:\Program Files\Adobe\Adobe Photoshop 2022\Required\Plug-ins\Generator\game_assets.generate\lib\parsermanager.js

 

you can make it work.

Change 
"webp": !!this._config["webp-enabled"]

 

to

"webp": this._config.hasOwnProperty("webp-enabled") ? !!this._config["webp-enabled"] : true,


BUT if you move to Photoshop 2023 that's different now... And I have no idea how to solve the problem this time, so I'm going to open a new post asking that :S