Prerequisite knowledge
 
  • This article requires that the reader has basic knowledge of Adobe Photoshop and Adobe Digital Publishing Suite.
User level: All
 
Sample file
 
By downloading software from the Adobe website you agree to the terms of our license agreement. Please read it before downloading.
 

 
Introduction

When building a DPS app, you need a variety of images used for app icons and launch screens for iOS, Android, and Windows devices. Making all the graphics for iOS can be a complicated combination of sizes, whereas Android apps require only a single image, and Windows apps require three images. The DPS Asset Generator.psd file and the Generator feature in Adobe Photoshop CC help to coordinate and automate the production of nearly 30 files used when building apps for all three DPS platforms.
 
Adobe Photoshop CC introduced the Generator feature, which automates the creation of web graphics files based on layer names. The DPS Asset Generator.psd file takes advantage of Generator to create the image files when building DPS apps. Generator will create individual files and a folder structure, which organizes the files for the three platforms.
 

 
Setting Up the Asset Generator

  1. Move or copy the DPS Asset Generator.psd file to a known location, such as where you store required assets for DPS publishing.
  2. Open the DPS Asset Generator.psd file in Adobe Photoshop CC.
  3. To activate Generator, choose File > Generate > Image Assets in Photoshop CC.
If this option is selected, Photoshop will generate files based on layer and group names defined in the Layers panel. Photoshop will create a folder based on the file name, in this case called DPS Asset Generator-assets in the same location where the DPS_Asset_Generator.psd file is saved. The asset file type, qualities, dimensions, names, and folder structure are controlled by layer and layer group names in the Photoshop file.
 
LAYER AND LAYER GROUP NAMES IN THE LAYERS PANEL CONTROL GENERATOR OUTPUT.

LAYER AND LAYER GROUP NAMES IN THE LAYERS PANEL CONTROL GENERATOR OUTPUT.

 

The DPS Asset Generator will create image files for both Retina and non-Retina (1x, 2x, and 3x) iOS devices, Android, and Windows apps. Adobe Generator is available in Adobe Photoshop CC. Some layers in the file generate more than one graphics file, and files may be scaled. The generated files are organized into a folder structure with assets for each platform in separate folders.
 
THE FOLDER STRUCTURE AND FILES BUILT BY GENERATOR

THE FOLDER STRUCTURE AND FILES BUILT BY GENERATOR

 

For more information about the syntax and use of Generator, please see: http://blogs.adobe.com/photoshopdotcom/2013/09/introducing-adobe-generator-for-photoshop-cc.html or do a web search for Photoshop generator.
 

 
Using the DPS Asset Generator.psd file

The DPS Asset Generator file uses Photoshop Smart Objects extensively. All the icons are duplicates of a single Smart Object. So, if you edit one icon, all the other icons will be automatically updated. Separate, independent Smart Objects are used for most of the Launch Images.
 
  1. To edit a Smart Object, double-click the layer thumbnail. It opens as another, temporary Photoshop file. It may have layers or additional Smart Objects inside.
  2. Make your edits, and then save and close the Smart Object file. When you return to the main Photoshop file, all duplicate Smart Objects update automatically.
DOUBLE CLICK THE LAYER THUMBNAIL TO EDIT A PHOTOSHOP SMART OBJECT.

DOUBLE CLICK THE LAYER THUMBNAIL TO EDIT A PHOTOSHOP SMART OBJECT.

 

A Smart Object may have layers and it may also contain additional Smart Objects or vector Smart Objects.
 
  1. Double-click the thumbnail for any Smart Object to edit its contents. Vector Smart Objects are edited in Adobe Illustrator when opened. After editing a vector Smart Object in Illustrator, save and close the file in Illustrator and then return to Photoshop to see the content update automatically.
  2. Save and close all Smart Objects until you return to the DPS Asset Generator files, all duplicates of the Smart Object will be updated.

 
What you should edit

Layers with a green label are Smart Objects that you should customize. You will find green layers in the Layers panel and in the Launch Images folder in the Layers panel. When you edit content, the assets will be re-generated.
 
EDIT SMART OBJECTS WITH BOTH THE GREEN AND YELLOW HIGHLIGHT COLOR.

EDIT SMART OBJECTS WITH BOTH THE GREEN AND YELLOW HIGHLIGHT COLOR.

 

  • Double-click on the thumbnail for the layer named “Double-click to edit master icon design in the layers panel.
  • Edit each of the Launch Image Smart Objects with the green label. Most of the Launch Images are independent Smart Objects because each size and orientation of the launch images will likely have different designs. The two 16:9 iPhone images are duplicate Smart Objects, so when you edit one the other will update automatically.
  • When you edit the Smart Objects, keep your design within the confines of the artwork to avoid changing the pixel dimensions.
  • Check the dimensions of your assets after they're generated.
  • The two Windows Launch Screens support transparency. The Smart Objects used for these two assets include a layer called “pixel defender — this layer has four pixels with very low opacity, which occupy the outermost corners of the Smart Object and defend the dimension of the asset. You can include transparency in other layers of these Smart Objects.

 
Using the files with DPS App Builder

When you are in the Icons and Splash Screens pane of DPS App Builder for iOS, you can manually load each asset by clicking the folder icon for each asset. Or you can drag and drop all the icons and splash screens from MacOS X to the DPS App Builder; select all files in the iOS folder except the nav folder and its contents, then drag and drop them onto the Icons and Splash Screens pane. DPS App Builder will load the assets into the appropriate entry field based on the asset dimension. Repeat this drag-and-drop process for the HD iPad. If your app is also for iPhone, repeat this process to load SD and HD assets for iPhone.
 
If you’re building Android or Windows applications, use the generated assets in the corresponding folder when you build or submit the app. And if you’re using Xcode, you may choose to rename the generated files.
 

 
Where to go from here

This article shows how to generate required assets when building DPS apps for various platforms. For details about building apps for these platforms, see the following articles:
 
Comments are currently closed as we migrate to a new commenting system. In the interim, please provide any feedback using our feedback form. Thank you for your patience.