• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
5

Exporting artboards to webp format?

Community Beginner ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

Great that the latest Photoshop has "full" webp support, but lacking is the ability to export artboards to webp format. I build a lot of my website graphics as artboards, but it looks like I will need an intermediary step of saving the artboards as PSD files first, and then exporting them as webp? Or am I missing something?

 

Thanks,

 

Judi

TOPICS
Windows

Views

13.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , May 13, 2022 May 13, 2022

Hi again Judi,

 

Please try this 1.4 version, I have replaced the function with a different way to call the same code.

 

/*
Artboards-to-WEBP-PS2022.jsx
14th May 2022, v1.4 - Stephen Marsh

* Only for Photoshop 2022 (v23.x.x) or later!
* Saves artboards as lossy WebP - Quality: 100
* Prompts for a save location and saves using the filename + artboard name
* Existing files will be silently overwritten

Instructions for saving and installing:
https://prepression.blogspot.com/2017/11/downloading-an
...

Votes

Translate

Translate
Community Beginner , Jun 12, 2022 Jun 12, 2022

@Stephen_A_Marsh Solved! Your script works perfectly. The problem was that I had the "Open As Layer" event running in the Script Events Manager. Turning that off solved the errors I was getting, plus a whole heap of other stuff relating to exporting artboards. I rely hugely on Open As Layer to help document my compositing workflow, but hadn't connected the dots to its impact on other scripts. But it's easy to toggle the event on and off as needed. Thank you so much for all your help on this, and

...

Votes

Translate

Translate
Adobe
Community Beginner ,
Jun 06, 2024 Jun 06, 2024

Copy link to clipboard

Copied

@Stephen_A_Marsh  

What a legend!! Thank you so so SO much for your help here. 
Really appreciated. 

Hope you have a wonderful day. 
Mel 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2024 Jun 06, 2024

Copy link to clipboard

Copied

@Mel30188944k1h7 

 

You’re welcome! I have updated the code to v1.1 with some extra metadata removal options to help slim down and or sanitise the output.

 

EDIT: Script updated to a 1.2 version with a "Script running, please wait..." message.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 17, 2024 Jun 17, 2024

Copy link to clipboard

Copied

Hey @Stephen_A_Marsh 

It's really helpful, thank you so much. One thing I noticed with these versions of the scripts, are that the document immediately closes after the script has finished running. Is it possible to keep the document open again since we have to export many different images. I think we had this on a previous version of the script, but then lost it again when you added the JPEG function to it. 

Any help would be greatly appreciated as always! Hope you have a wonderful week. 
Thanks Mel

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2024 Jun 18, 2024

Copy link to clipboard

Copied

quote

Hey @Stephen_A_Marsh 

It's really helpful, thank you so much. One thing I noticed with these versions of the scripts, are that the document immediately closes after the script has finished running. Is it possible to keep the document open again since we have to export many different images. I think we had this on a previous version of the script, but then lost it again when you added the JPEG function to it. 

Any help would be greatly appreciated as always! Hope you have a wonderful week. 
Thanks Mel


By @Mel30188944k1h7

 

 

Temporary destructive changes are being made to the original file, so it is closed without saving for safety.

 

It is possible to add a step to duplicate the file, so that the script works on the duped file and then closes that down without saving, leaving the untouched original open.

 

Would that work for you?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 18, 2024 Jun 18, 2024

Copy link to clipboard

Copied

Hi @Stephen_A_Marsh 
Ahh I see, hmm. We don't need the file to save specifically. It's just the PSD.  Just to remain open so we can crop more images. It was definately possible in an older version of the script, but I can't seem to find where you made the change for me. 

If this is the only way to do it, that totally cool. Just saves us from having to reopen the PSD. 

Thanks a lot for your time! 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 18, 2024 Jun 18, 2024

Copy link to clipboard

Copied

I guess the other thing to consider is that IF we wanted to make a small edit to the crop, we previously did, We'd have to add the images again. Keeping the file "OPEN" would allow us to edit as much as we needed to first before closing and saving the PSD if needed. I just had that exact issue.

I hope that makes sense? @Stephen_A_Marsh 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 07, 2023 Jul 07, 2023

Copy link to clipboard

Copied

THIS 100% NEEDS TO BE ADDED. So lame that this didn't get into Export as but did make it to Save A Copy... wah, wah, wah....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2024 Jun 18, 2024

Copy link to clipboard

Copied

@Mel30188944k1h7 

 

I have updated the JPEG & WEBP script to a 1.3 version, working on and then closing a temporary file without closing the original doc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 18, 2024 Jun 18, 2024

Copy link to clipboard

Copied

LATEST

AMAZING. Again thanks a lot for your support here. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines