Sub topic 12
Export Layers and Artboards as Separate Assets
Assume you know how to select layers, artboards, and menus in Photoshop. You should also understand pixels, transparency, and the difference between a raster image and a vector shape. This chapter shows how to turn one Photoshop document into several web-ready files in one pass.
Choose the export structure
Use separate layers when each item is an independent asset, such as icons, buttons, logos, or product images. Use artboards when each area represents a complete screen, banner, or social post.
Before exporting, check these details:
- Give each layer or artboard a clear, unique name.
- Hide guides, notes, and layers that should not appear in the output.
- Confirm that transparent areas are intentional.
- Use pixel-based dimensions for web assets.
- Keep the largest required scale in the document before exporting smaller versions.
A layer group can help organize an asset, but Photoshop may export the group differently from a single visible layer. Test one group before exporting a large collection.
Export layers and artboards with Export As
Select a layer, group, or artboard in the Layers panel. Choose File > Export > Export As. Photoshop lists the selected items as separate exports when you select multiple layers or artboards.
For each asset, choose:
- Format, such as PNG, JPEG, or WebP.
- Width and height in pixels.
- Scale, such as 1x or 2x.
- Transparency when the format supports it.
- The destination folder and file naming options.
PNG is useful for transparent logos and icons. JPEG is usually smaller for photographs. WebP can provide small files for modern websites, but confirm that the destination supports it.
Use the preview and file-size information before exporting. If an asset looks soft, return to the source document and export from a larger original rather than enlarging a small result.
Generate several assets from layer names
Photoshop can create image assets automatically when you choose File > Generate > Image Assets. Rename layers with the desired filename and extension. Photoshop then writes files into a folder beside the document.
hero.jpg90%
icon-search.png
icon-search-2x.png
200% badge.png
300x300 avatar.jpgThe percentage after a JPEG filename controls JPEG quality. A prefix such as 200% requests a larger scale. A size such as 300x300 requests those pixel dimensions. Use simple names without characters that your website or operating system treats specially.
This method is convenient for repeated design changes. When the document is saved, Photoshop can update the generated files. Turn image asset generation off when you no longer want Photoshop writing files automatically.
Provide high-density versions
A 2x asset contains twice the width and height of a 1x asset. It therefore contains four times as many pixels. A browser can use the larger file on a high-density display, where it may look sharper.
For responsive images, give the browser several width choices:
<img
src="photo-800.jpg"
srcset="photo-800.jpg 800w, photo-1600.jpg 1600w"
sizes="(max-width: 800px) 100vw, 800px"
width="800" height="533"
alt="Describe the photo">Keep filenames and dimensions consistent. After exporting, open every file and check that the correct layer, transparency, dimensions, and scale were used.
Exercise
You need a transparent logo at normal and high-density sizes. Which Photoshop export approach fits, and what should you verify?
Show answer
Name or select the logo asset, export PNG files at 1x and 2x, and verify the pixel dimensions, transparency, filename, and visual sharpness.