As of the 2015 release of Photoshop CC, extract assets functionality is no longer available in the form described in this article. More intuitive functionality to export artboards, layers, layer groups, and documents as image assets has been introduced in Photoshop.
For details of these newer export options, see Export artboards, layers, and more.
Extract Assets is a feature in Photoshop CC (2014) and earlier that provides an interface on top of Adobe Generator to extract assets quickly for web and screen design from Photoshop files. You can select layers or layer groups in Photoshop and use a graphical user interface to extract them as JPG, PNG, SVG, or GIF image assets.
With Extract Assets you can:
- Extract a layer or a layer group from a PSD into one or more image assets
- Create image assets that are PNG, JPG, GIF, or SVG
- Set up 1x, 2x, or more versions of all image assets
- Preview each image asset
- Easily extract assets into your preferred folder
- Ensure that the extracted assets are updated whenever the PSD changes
When multiple layers or layer groups are selected for extraction, you are presented with options to generate a separate asset from each of the selected items.
- Select one or more layers or layer groups.
- Do one of the following:
- Right-click the selected items and then select Extract Assets from the context menu.
- Press the Cmd+Opt+Shift+W (Mac) or Ctrl+Alt+Shift+W (Windows) keyboard shortcut.
- Select File > Extract Assets.
Extract Assets honors layer names that conform with the Photoshop Generator syntax. For example, if you try to extract an asset from a layer named layer.gif, the Extract Assets dialog displays GIF as the default format for the image asset.
- In the Extract Assets dialog, specify the following settings for each asset that you want to generate:
Asset format: Select PNG-8, PNG-24, PNG-32, GIF, JPG, or SVG.
Quality scaling: For JPEG assets, you can specify a value from 0–100% to scale the quality of the asset. Adjust the slider in the appropriate direction.
- To extract more than one version of the asset, click the + icon next to the asset in the Extract Assets dialog. You can specify different format, quality, and scaling parameters for each asset.
- Click Extract.
- Photoshop notifies you that it requires a change in layer name to continue with the asset extraction. This is because Photoshop uses the underlying Generator framework to create assets through the Generator syntax. Click OK to continue with extracting assets.
- Navigate to the folder where you want to save the generated assets.
- Click Extract. Photoshop creates the image assets and opens their containing folder in the Finder (Mac) or Windows Explorer. In the process of creating the assets, the relevant layers are automatically renamed in accordance with the Photoshop Generator syntax.
Layers/layer groups that you extract as image assets are displayed in the Extract Assets dialog the next time you invoke image asset extraction functionality.
You can specify extraction settings and create assets for different purposes using a number of pre-populated setting combinations. For example, you can generate assets for Retina displays. Any settings that you specify are applied document-wide.
- Specify one or more resolutions you want in the Extract Assets section on the right.
- If you want a resolution that is not listed, or to change the destination subfolder for assets to be extracted at different resolutions, click Settings.
- You can either use the default suffixes for each resolution or add your own.
- You can also choose to use the default subfolders for each resolution or specify a different subfolder name that you prefer.
- Clicking Done in the Extract Assets dialog saves these settings to the document. Whenever you next create assets, the same settings are used. All future assets are created for the resolutions you have chosen when the document is opened in any instance of Photoshop CC.
If necessary, you can select the Automatically Generate Assets While Updating Document option. This option is synchronized with the Generate > Image Assets option for Photoshop Generator. When you enable the Extract Assets option, the Generator option is also automatically enabled.
- Save your PSD file to the Creative Cloud folder you synchronized with Creative Cloud.
- Open Extract Assets (File > Extract Assets) and add the assets you want. Click Extract and choose the default folder to save to.
- When you open the PSD in Creative Cloud, you will now be able to view your Photoshop file along with a list of assets you have extracted.
- You can now share your PSD and the assets you have created with developers you want to collaborate with through Creative Cloud.
If you have layers with the same name but split across different groups, they are likely to overwrite each other because assets are usually rendered into one single directory. To prevent this, Photoshop automatically rename a layer when we detect a conflict.
If you override the renaming, you receive this error to prevent you from overwriting an existing asset with the name you have chosen.
If your asset names contain invalid characters, you also receive this error. Rename the file without the invalid characters to resolve the issue.