Export Selection / Artboard in Photoshop

The API methods like

document.saveAs.jpg()

Will export the entire project as 1 image, while the UI methods like

  • File > Export > Export As
  • File > Export > Quick Export as PNG

Will export separate images per Artboard.

Running an export with “Export As” doesn’t seem to have any BatchPlay events recorded in Alchemist. (cc @Jarda )

And this seems to work differently than the legacy

  • Export > Artboards to Files
  • Export > Artboards to PDF

Which both seem to create unique documents for each artboard before exporting them

Is anyone aware of a way to export artboards or even a selection of a document as an individual document in Photoshop UXP?

Export As is in fact 1st party UXP plugin. To my knowledge, it does not use Action Manager code under the hood but rather calls different PS internalls for image export. Therefore, it is not recorded. And for UXP plugin itself to be recorded, it needs explicitly made support for action recording.

I think people complained about that missing action, like about 10 years ago, when it was based on NodeJS and a generator plugin, I think. Is it still non-recordable today?

Ah interesting, that makes sense.

Found a solution in another thread for exporting a specific layer / artboard:

1 Like

Yes I think exportSelectionAsFileTypePressed is that explicit support they have added.

1 Like