Acorn Acorn 5

Smart Layer Export



Smart layer export is an alternative to traditional slicing found in image editors.  Name your layers or layer groups like you would a normal image file, and then export them out of Acorn without any cumbersome tricks.  You can even tell Acorn to export your images every time you save.  Acorn can also auto-scale your images if you'd like to work at one size. See the Auto-Scaling section below for more info.


This tutorial will use the example of smart layer export being used on an image of 'submit' buttons.  You can download the sample image here: FancySubmitButtonSmartExport.acorn.  This is what the sample image looks like:

Screen Shot 2015-05-14 at 9.41.21 AM.png

The sample image file has two buttons meant for a website.  They are different sizes so the smaller one can be shown on regular screens, and the larger one for Retina class devices (such as an iPhone 4, iPad 3, or a Retina MacBook Pro).


If you were to use the File ▸ Exportmenu item to save the image as a PNG, you would still have to slice up the image into two different parts- and you'd have to save the image again.  Wouldn't it be great if you could tell Acorn that you would like to save out a layer as a specific file name?  This is where smart layer export comes in handy.



Smart Layer Export Steps:



To see how this is done, take a look at the layers list of the example image:



Screen Shot 2015-05-14 at 10.07.57 AM.png



There are a total of 11 layers.  You'll notice that two layer groups are named as files.  When you use smart layer export, Acorn will use the layers which are part of the group (and only that group) to make a brand new image.  Since the "Background" layer is outside of both groups, it will not be used when exporting.  However, if you renamed "Background" to "Background.png", there would be 3 files exported out instead of 2.


Below are the two images created from the smart layer export:



Screen Shot 2015-05-14 at 10.05.09 AM.pngScreen Shot 2015-05-14 at 10.05.05 AM.png







Auto-Scaling



Acorn can do the work of automatically exporting the image at different sizes without maintaining multiple copies of the same image in the canvas.  


Instead of creating multiple layer groups for your images, just create one size. In the example below, the image is at @2x. In the layer name, put the name of the image you are starting with (submit@2x.png), followed by the names of the other images you would like auto-scaled and exported after it. For ”submit.png" Acorn will take the layer and scale it down for export.  For "submit@3x.png", Acorn will scale it up for export.



Pasted Graphic 2.tiff


You can download this sample image from here: FancySubmitButtonSmartExportAutoScale.acorn.