Watching:

Create Wireframes, Graphics, and Web Mockups in PhotoShop


show more Using the Image Generator (NEW) provides you with in-depth training on Web. Taught by Justin Seeley as part of the Photoshop CS6 for Web Design (2012) show less
please wait ...

Using the Image Generator (NEW)

As a web designer I'm always working on multilayered files that require me to process several images at once. In previous versions of Photoshop that's always been somewhat tedious, because I had to slice things up or copy and paste things into new documents and then use Save for Web. But recently I've been playing around with the Adobe Generator feature, which allows me to easily export assets out of Photoshop and into a folder without me having to do anything really. Let's take a look. Here I have open a document for this little design that I'm working on for the Roux Academy. It's got a logo, some background elements, and some buttons, and what I want is for Photoshop to generate these assets for me so I don't slice it up into individual files.

In order to do that I first have to turn the Generator feature on, by going to the File menu, selecting Generate, and making sure Image Assets is turned on. By default, that should be turned off, so if you go back and see if there's a check mark, you can turn that on and off just by tapping it like that. Once you turn it on Photoshop then generates a folder wherever this file is saved or on the desktop if it hasn't been saved yet. And then as you create your layers over here, it automatically generates assets based on those layer names. Now you have to be kind of careful with how you name your layers.

See, you have to append the file extension of the file type that you want. So for instance, on these background layers, if I want to name them something jpg then it would generate a JPEG. So in this case I will call this bluebg.jpg. In addition to the file extension, you can also append things like quality settings, so I could say green.jpg10 to give it a quality setting of 10 and you can also specify things like size. So for instance here I could say, redbg.jpg, 200% redbg@2x.jpg to give it a Retina display graphic as well.

Now, up here for these buttons, I can append things like signup.png and I can choose 24 or 8. I can even do login.png, and let's say that I wanted to see these also as a gif. I can do this: login.gif. And in order to create multiple files all you have to do is separate it by a comma. Finally, with the logo, I want to see this in several different ways, so I'm just going to call this logo.jpg10, logo.png8, logo.gif and and I will hit Enter.

Now once I've done that, I don't have to do anything else. I will navigate out here to my Finder window, go into my Roux Academy assets, and there you can see all of the files that Photoshop generated for me, and I'll take these and I will open them up so you can see them all. So here we have the background images that also have some effects applied to them. That's why they are having that big white background around. And here's the PNG file for the logo. Here is the JPEG version of the logo. Here's the login PNG, the GIF, and then our green background as well.

So as you can see, while this won't necessarily replace your Safe for Web dialog box, it's definitely something worth checking out if you have a multilayered file that you need to get stuff out and delivered quick and easy. So again, this is called the Adobe Generator feature and I highly recommend you check it out for your next web project.

Using the Image Generator (NEW)
Video duration: 3m 26s 4h 56m Appropriate for all Updated Oct 04, 2013

Viewers:

Using the Image Generator (NEW) provides you with in-depth training on Web. Taught by Justin Seeley as part of the Photoshop CS6 for Web Design (2012)

Subject:
Web
Software:
Photoshop
Author:
please wait ...