Assets for Photoshop: Generating Image Assets from PSD Layer Content

Dream it. You can generate JPEG, PNG, GIF, or SVG image assets from the contents of a layer or layer group in a PSD file. Assets are automatically generated when you append a supported image format extension to a layer name or a layer group name.

The layer hierarchy for this file has two layer groups-Rounded_rectangles and Ellipses. Append appropriate file format extensions (.jpg, .png, .gif, or .svg) to the names of the layers or layer groups from which you want to generate image assets. Photoshop generates the image assets and saves them in a subfolder alongside the source PSD file. Image asset generation is enabled for the current document. Once enabled, the feature remains available whenever the document is opened next.

To generate multiple assets from a layer/layer group, separate the asset names with commas. You can choose to save image assets generated from particular layers/layer groups in a subfolder directly under the document's asset folder. Generating image assets from a PSD file is particularly useful for multidevice web design. A single image asset is generated from the contents of a layer/layer group.

For example, the AdventureCo Logo layer group in the screenshot above contains a shape layer and a live text layer. JPEG assets are generated at 90% quality by default. PNG assets are generated as 32-bit images by default. Add the desired output quality as a suffix to the asset name: .jpg(1-10) or .jpg(1-100%). Add the desired output image size (relative or in supported formats: px, in, cm, and mm) as a prefix to the asset name. Photoshop scales the image accordingly. Note: Remember to add a space character between the prefix and the asset name. If you're specifying the size in pixels, you can omit the unit. As illustrated, you can mix different units and pixels while specifying the desired output image size.

Note: Remember to add a space character between the prefix and the asset name. If you're specifying the size in pixels, you can omit the unit. As illustrated, you can mix different units and pixels while specifying the desired output image size. You can specify multiple asset names with parameters while naming a layer for asset generation. 100x? You can specify document-wide default settings for the generated assets. Begin the name of the layer with the keyword default. Now, enter the settings that you want to apply to all image assets generated from the document.

Generates all image assets in a subfolder named hi-res. The File > Automate > Generator Plugins menu command is unavailable when you disable image asset generation from Preferences. JPG assets are generated at 90% quality by default. PNG assets are generated as 32-bit images by default. Yes. Transparency and other effects applied to a layer are reflected in the assets generated from that layer. Assets are clipped to the document boundaries. In addition to the comma (,), you can use the plus (+) symbol as a separator between image asset names.

  • Two layer groups featured: Rounded_rectangles and Ellipses.
  • Supported output formats: JPG, PNG, GIF, SVG.
  • Control over quality and size via naming conventions.
  • Assets can be saved in subfolders under the document’s asset folder or hi-res subfolders.
  • Document-wide defaults and per-layer naming enable flexible asset generation.

How to generate assets from layers

  1. Append a supported image extension to the name of a layer or layer group you want to export as an asset (for example, Rounded_rectangles.png or Ellipses.svg).
  2. Optionally add a size prefix (e.g., 200x300) and a quality suffix (e.g., .jpg(90)) to tailor output.
  3. Separate multiple asset names with commas if you wish to generate several assets from different layers or groups at once (e.g., Rounded_rectangles.png, Ellipses.svg).
  4. Choose whether to save assets in a subfolder under the document’s asset folder or in a dedicated hi-res subfolder as configured.

Practical notes and tips

Assets reflect transparency and other effects applied to their source layers, and they are clipped to the document boundaries. When specifying sizes, you can mix units (px, in, cm, mm) and even omit the unit for pixel values. If you specify pixel sizes, ensure a space between the size prefix and asset name. The same applies when using multiple asset names with parameters.

Document-wide defaults can be set by beginning the layer name with the keyword default, applying a uniform configuration to all generated assets from the document.

Diagram of layer-to-asset workflow (PSD to assets)

Adobe Photoshop CC 2015 - Export As & Generate - Image Assets

Note: The File > Automate > Generator Plugins menu command is unavailable when image asset generation is disabled from Preferences.

In summary, image asset generation in Photoshop streamlines the production of device-ready assets from a single PSD source, with flexible naming, quality, and sizing controls that integrate directly into the document’s asset organization.

tags: #assets #for #photoshop