Unfortunately, based solely on the provided reference, the information is incomplete and doesn't fully explain how to export all assets. It describes opening a specific file and saving it as a Photoshop file, which isn't about exporting assets. However, I can provide general methods to export assets in Photoshop. There are primarily two common approaches: using the "Export As" feature for individual layers or layer groups and using the "Generate Image Assets" feature.
Here's a comprehensive breakdown of how to export assets from Photoshop, assuming you want to export individual elements of your design as separate image files:
Method 1: Using "Export As" (For Individual Layers or Layer Groups)
This method is best for exporting specific elements one by one, or in small batches.
-
Select the Layer or Layer Group: In the Layers panel, select the layer or layer group you want to export as an asset. You can select multiple layers by holding down
Ctrl
(Windows) orCommand
(Mac) and clicking on each layer. -
Right-Click and Choose "Export As...": Right-click on the selected layer(s) or layer group(s) and choose "Export As..." from the context menu.
-
Choose Your Export Settings: The "Export As" dialog box will appear. Here, you can configure the following:
- Format: Select the desired file format (e.g., PNG, JPG, GIF, SVG). PNG is often preferred for graphics with transparency. JPG is suitable for photographs. SVG is excellent for scalable vector graphics.
- Quality: Adjust the image quality (relevant for JPGs).
- Size: Scale the image (e.g., reduce its width and height).
- Resampling: Choose a resampling method for image scaling. "Bicubic Automatic" is usually a good default.
- Transparency: (For PNG) Choose whether or not to preserve transparency.
- Metadata: Include or exclude metadata.
-
Click "Export All": If you have multiple layers or layer groups selected, clicking "Export All" will allow you to save each asset individually with the specified settings.
-
Choose a Destination Folder: Select a folder on your computer where you want to save the exported assets. Name the file appropriately.
Method 2: Using "Generate Image Assets" (For Automated Export based on Layer Naming)
This method is ideal for exporting many assets automatically based on naming conventions. It's more advanced but much faster for complex projects.
-
Enable "Generate Image Assets": Go to
File > Generate > Image Assets
. A checkmark will appear next to "Image Assets" when it's enabled. Photoshop will monitor your document for layer names that specify image formats and sizes. -
Name Your Layers/Layer Groups with Export Specifications: This is the crucial part. You need to rename your layers or layer groups according to a specific syntax so Photoshop knows how to export them. Here are some examples:
button.png
: Exports the layer/group as a PNG file at its current size.icon.jpg
: Exports the layer/group as a JPG file at its current size.logo-50%.png
: Exports the layer/group as a PNG file scaled down to 50% of its original size.@2x/image.png
: Exports the layer/group at double the resolution (useful for Retina displays). The@2x
creates a subfolder.button.png, button.jpg
: Exports the layer/group in both PNG and JPG formats.
You can combine these options to create different versions of your assets. Separate multiple export specifications with commas. Spaces are permitted between comma-separated arguments.
-
Photoshop Automatically Generates Assets: As you edit your layer names, Photoshop will automatically create a folder named "YourDocumentName-assets" in the same directory as your Photoshop document. This folder will contain all the exported assets according to your specified layer names.
-
Update Assets: Any changes you make to the layers will automatically trigger a new export to the assets folder.
Example Layer Naming:
Let's say you have a layer group named "Product Image". To export it as a PNG and a JPG, both scaled down to 75%, you would rename the layer group to:
Product Image 75%.png, Product Image 75%.jpg
Photoshop would then create two files in the assets folder: "Product Image 75%.png" and "Product Image 75%.jpg".
Important Considerations:
- Naming Conventions: Strict adherence to the naming conventions is crucial for "Generate Image Assets" to work correctly.
- Folder Structure: Photoshop organizes assets into subfolders if you include folder names in your layer names (e.g.,
@2x/icon.png
). - Background Layers: Layers that are simple background colors or patterns might not be useful as individual assets. Focus on the design elements you need to reuse.
- Optimization: Consider optimizing your exported images using tools like TinyPNG or ImageOptim to reduce file sizes without significantly affecting visual quality.
By using these methods, you can effectively export all the assets you need from your Photoshop designs for use on websites, mobile apps, and other projects.