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
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
...
@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
...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
Copy link to clipboard
Copied
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.
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
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
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?
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!
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
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....
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
AMAZING. Again thanks a lot for your support here.