Build settings
Build settings decide how Skala exports images.
Build groups #
Build groups decide what is exported. Layers, groups, and pages are assigned to a build group in the build tab of the properties panel, and everything assigned to a build group is exported by all of its build tasks.
To add a build group, click the + button below the list and choose Add Build Group. To rename a build group, edit its name in the list. To delete one, select it, click the cog button, and choose Delete.
Selecting a build group shows a table of every layer, group, and page that’s assigned to it, along with the page each one is on. It’s a quick way to check that the right things are being exported.
Build tasks #
Build tasks decide how something is exported — the folder, file names, scales, image format, and color settings. A build group can have as many build tasks as you like. For example, a build group could have one task that exports PNGs for iOS, and another that exports WebP images for Android.
To add a build task, select a build group, click the + button, and choose one of the following:
Add Build Taskadds a PNG task that exports at 1×.Add iOS PNG Taskadds a PNG task that exports at 1×, 2×, and 3×, with@2xand@3xsuffixes.Add Web PNG Taskadds a PNG task that exports at 1× and 2×, with a@2xsuffix and kebab-case file names.Add Android WebP Taskadds a lossless WebP task that exports at 1×, 1.5×, 2×, 3×, and 4×, with snake_case file names.
If no build group is selected, a new build group is created for the task. Build groups and build tasks can be dragged to reorder them, and build tasks can be dragged to a different build group.
Export path #
The export path is the folder that the build task writes its files to. Type a path, or click Set to choose a folder. New build tasks export to a folder called Skala Export, next to the Skala document.
Paths chosen with Set are stored relative to the Skala document where possible, so a project folder can be moved, shared, or checked into version control without breaking its exports. Because relative paths are worked out from the document’s location, a new document must be saved before it can be built. Folders that don’t exist yet are created automatically.
Name transform #
The Transform popup menu in the filename processing section changes the naming convention of exported files. The file name comes from the export name set in the build tab of the properties panel, or the layer, group, or page name if the export name is empty.
Don't Changeuses the name as it is.camelCasejoins the words, lowering the first letter and raising the first letter of each other word (myGreatIcon).PascalCasejoins the words, raising the first letter of each word (MyGreatIcon).snake_caselowers the name, and replaces spaces with underscores (my_great_icon).kebab-caselowers the name, and replaces spaces with hyphens (my-great-icon).
The camelCase and PascalCase transforms treat anything that isn’t a letter or number as a break between words. The snake_case and kebab-case transforms only replace spaces, so any other punctuation in the name is kept. Prefixes and suffixes are never transformed, so a suffix like @2x always survives.
Characters that can’t be used in file names, like /, :, and *, are removed.
Outputs, scale, prefix, and suffix #
When Export Options is set to Image, the build task has a table of outputs. Each output exports every assigned layer, group, and page once, so a task with three outputs writes three files for each.
Scalesets the size of the exported image, relative to the Skala document.1is the document size,2is double, and so on. Scales between 0.1 and 10 can be used.Prefixis added to the start of the file name.Suffixis added to the end of the file name, before the file extension.
Click the + button in the table header to add an output. Skala guesses the next scale you’ll want. To remove outputs, select them, click the cog button, and choose Delete. Outputs can be dragged to reorder them.
When Export Options is set to Sprite Sheet, all the assigned layers, groups, and pages are packed into a single image instead.
Further reading: Sprite sheets
Image formats #
The Format Options popup menu chooses the image format. Skala can export PNG, JPEG, WebP, and TGA images. Each format has its own options.
PNG is lossless, and supports transparency and 16-bit color. It is the best choice for most interface graphics. PNG images have Color Type, Color Format, Dither Filter, Alpha Filter, Compression, and Color Profile options. The Compression options are Level 0 to Level 9, None, Speed, Default, and Best. Compression only changes file size and speed — PNG is always lossless.
JPEG is lossy, and doesn’t support transparency, so it’s best for opaque artwork like photos and full page mockups. JPEG images have Color Sampling, Color Format, Dither Filter, Quality, Progressive, and Color Profile options. Quality can be set from 1 to 100, where higher values look better and make larger files. Color Sampling sets the chroma subsampling, from YCbCr444 (full color detail) to YCbCr410 (the least color detail, and the smallest files).
WebP can be lossy or lossless, and supports transparency. WebP images have Color Format, Dither Filter, Alpha Filter, Quality, Lossless, and Color Profile options. When Lossless is on, Quality is ignored.
TGA is an uncompressed or run-length encoded format, often used for games. TGA images have Color Type, Color Format, Dither Filter, Alpha Filter, and Compression options, where Compression is None or Run-Length Encoding. TGA images can’t contain a color profile, so they’re always converted to sRGB.
All formats also have a Metadata Text field, for text that’s embedded in the exported image.
Color type and color format #
Color Type sets the number of bits for each channel. PNG and TGA can be 8-bit or 16-bit. JPEG and WebP are always 8-bit, so they have no color type option. 16-bit images have smoother gradients and more precise colors, but they’re larger, and not every app or platform can open them.
Color Format sets which channels are exported.
Yis greyscale.YAis greyscale with alpha.RGBis color, with no transparency.RGBAis color with alpha.Autolets Skala choose.
The popup menus only list the options that the chosen image format can store. If a document asks for an option the format can’t store, for example a document from an older version of Skala, the menu marks it as not supported and shows what it will export as instead, and the build reports a warning.
Color profile and proofing #
Color Profile sets the color space that exported images are converted to. The profile is embedded in the exported image. The options are Auto (which uses sRGB), sRGB, Display P3, ACEScg, AdobeRGB, BT.2020, BT.709, DCI-P3 D65, and Extended Linear sRGB.
When Enable Proofing is on, colors that can’t be converted to the color profile are replaced with an alarm color in the exported image, so any out of gamut areas are easy to spot. This is intended for checking artwork, rather than for final exports.
Clamp Negatives clamps negative values during the color conversion. Negative values can appear when wide gamut colors are converted to a smaller color space.
Further reading: Color management and canvas proofing
Dithering #
Dithering adds a tiny amount of noise when converting to a lower color depth, to avoid banding in gradients and shadows. It’s especially helpful for 8-bit images, and new build tasks use Blue Noise by default. The Dither Filter options are:
None, which applies no dithering.Nasik,Bayer, andBlue Noise, which are ordered dithering patterns.Floyd Steinberg,Atkinson,Stucky, andSierra, which are error diffusion methods.
Blue noise is a good default. It’s very hard to spot, and it doesn’t form obvious patterns.
Alpha filter #
The Alpha Filter changes how transparent pixels are stored. It is disabled when the chosen color format has no alpha channel.
Autoleaves the image as it is.Premultiply Alphamultiplies the color of each pixel by its alpha.Flood Transparentfills fully transparent pixels with the color of the nearest opaque pixel. This helps avoid dark fringes when images are scaled or filtered, like textures in games.Clear Transparentsets fully transparent pixels to zero, which can make files smaller. New build tasks use this by default.