Skip to main content
Participant
November 10, 2020
Question

Export layer images using Photoshop Script

  • November 10, 2020
  • 1 reply
  • 335 views

Currently, I'm writing plugins in Photoshop to export layer images. In this plugin, I export layer images one by one. When exporting the image I will do the following,

  1. Remove visibility of all Layers
  2. Select layer
  3. Turn Visibility
  4. Resize canvas according to the layer bounds.
  5. Export image

But increasing the layer size due to increasing number of actions scratch disk usage is increased. Is there any way to export images without resizing the canvas size?

This topic has been closed for replies.

1 reply

Kukurykus
Legend
November 10, 2020

'File / Generate / Image Assets' is going to export layer (or bunch of them if contained in a layerSet) even when specific layer is not visible, or the group they are in. Additionally images are exported as 'trimmed' pixels.