all articles

Adobe Generator: Best Thing Since Sliced GIFs

Read TIme

#

minutes

Published

October 8, 2013

 Blog Subcategories
Adobe Photoshop logo centered on a colorful abstract background, surrounded by icons representing media types such as audio, images, music, and charts.
Dave Rodriguez, Managing Director, Development

We don’t usually discuss specific products on the blog, but a new feature of Adobe Photoshop CC called Generator has our team talking. Starting with version 14.1, Photoshop allows developers to directly export layers as graphic assets without having to slice, hide, nudge, copy or paste.

Here at Hanson, our visual designers produce beautiful mockups in Photoshop, and those mockups are composed of dozens or hundreds of individual layers. The job of our front-end developers is to take small details like icons, bullets, and backgrounds, and export them to image files that we can use in our stylesheets and HTML markup. For the last 15 years, our preferred solution was to add “slices” to Photoshop files, effectively drawing boxes around the layers we wanted to export.

Getting the slices right meant hiding some layers and showing others. If we needed one layer in multiple sizes (a common requirement with responsive design) we had to duplicate it, scale it, and move it from its normal position to some empty corner to be sliced.

All that layer manipulation can mangle a Photoshop file, so our best practice was to create a copy of the original, or to extract all the assets into a separate file which was then sliced. Neither of those was a very good option, so I’m happy to announce that with Adobe Generator, the future is here.

The concept of Generator is gloriously simple. By naming your layers and groups, you can  export graphics in the format, quality, and even size of your choice.

Screenshot of Adobe Photoshop’s Layers panel showing multiple layers, including shapes, text, and an image file (“icon-trash.png”).

All I have to do is add a filetype extension to my layer name, such as icon-trash.png. Now I just go to the File menu and select Generate → Image Assets, and presto, the PNG file appears in a folder alongside my PSD.

Screenshot showing Adobe Photoshop’s File menu with “Image Assets” checked, alongside a Windows file explorer window displaying folders like Desktop, Downloads, and Libraries.

The power of Generator doesn’t end there. I can export PNG, GIF, or JPG files, and I can set different qualities (such as .jpg60, .jpg70, .jpg80) and bit depths (.png8, .png24, .png32) depending on my needs. As long as the Generate → Image Assets checkbox is checked, Generator will output new assets every time the layer name changes.

‍

Photoshop Layers panel showing a single layer named “icon-trash.png, icon-trash_sd.png” at 200% scale with effects applied.

‍

I can also create multiple images from a single layer. In the example above I’m telling Generator to scale a vector layer to 200% and export it as icon-trash.png (for high-pixel-density screens), and then to export a copy at regular size as icon-trash_sd.png for everybody else.

These are just a few examples of why the front-end development team is so excited about Generator. We congratulate Adobe on the biggest game-changer in graphic asset production since the invention of the slice. For details about Generator and its other features, visit Adobe’s blog.

Credits: https://www.adobe.com/products/photoshop-lightroom.html

‍

You may also like
An illustration of a person writing with a pencil, with a thought bubble above their head showing a glowing light bulb to represent an idea or creativity.
5 Sources for Inspiring Interactive Design

Inspiration is a fickle beast. You never know when one unique sight or sound will touch off a spark of creativity. So when I’m starting a new interactive design project, I comb through these 5 sources of inspiration...

Joe Payton, a senior interactive designer at Hanson, shares 5 sources for inspiring interactive design.

A stack of sealed cardboard moving boxes labeled “fragile” and “handle with care,” piled in a hallway alongside packing materials like bubble wrap and paper.
4 Reasons to Revise Your Content During a Redesign

Do you have dusty boxes in a closet or basement that you never unpacked last time you moved? You ran out of energy. Or you ran out of space. Maybe (gulp!) it’s been boxed up for decades and you just keep moving it with you. Now imagine that those boxes are the website content you haven’t updated in five years...

Mindy Withrow, Content Strategist at Hanson Inc., offers 4 reasons you should revise your content during a site redesign.

A smartphone displaying a contact page for Hanson Inc., with a large cartoon hand tapping the screen.
On Mobile Forms and Homer Simpson Fingers

There’s an old episode of The Simpsons where Homer, working from home, tries to call the nuclear plant to warn about a meltdown. As he dials, he hears the following recording: “The fingers you have used to dial are too fat. To obtain a special dialing wand, please mash the keypad with your palm now.”

Designing successful mobile forms is about removing as much data entry as possible and optimizing what remains so even Homer Simpson could fill them out.