Back

Adobe Generator: Best Thing Since Sliced GIFs

#

minute read

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.

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.

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.

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
Easing, Excessiveness, and Pace in Motion Design

Best practices for animation and what to avoid with Motion Designer Corey Kujawski.

SlideShare: What is Responsive Design?

Think about how you typically consume information on the internet. PC? Tablet? Smartphone? TV? Internet consumption is an essential part of our everyday life. But the devices we use to consume this content are multiplying and changing at a rapid pace. And these devices differ in screen size, resolution, and interface, to mention just a few variations. To give users access to this content via a variety of devices, we have to start making websites more flexible or responsive. By changing how we think about website design, we can maximize our audiences without having to rethink the wheel for every individual device. Our slideshare shows you how…

Slideshare: Responsive design is an approach where the design and development responds to the screen size, platform and orientation of each user.

What Does Being a “Top Workplace” Mean to Us?

As you may have heard, Hanson was recently named to The Blade's Top Workplaces (for the second year in a row). Because this award is based on employee surveys, we wanted to hear what being named a top workplace means to our fellow Hansonites. (Spoiler alert: a lot of us feel lucky to be part of this team!)

Hansonites reflect on what being named to The Blade's Top Workplaces of 2015 means to them.