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 Task adds a PNG task that exports at 1×.
  • Add iOS PNG Task adds a PNG task that exports at 1×, 2×, and 3×, with @2x and @3x suffixes.
  • Add Web PNG Task adds a PNG task that exports at 1× and 2×, with a @2x suffix and kebab-case file names.
  • Add Android WebP Task adds 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 Change uses the name as it is.
  • camelCase joins the words, lowering the first letter and raising the first letter of each other word (myGreatIcon).
  • PascalCase joins the words, raising the first letter of each word (MyGreatIcon).
  • snake_case lowers the name, and replaces spaces with underscores (my_great_icon).
  • kebab-case lowers 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.

  • Scale sets the size of the exported image, relative to the Skala document. 1 is the document size, 2 is double, and so on. Scales between 0.1 and 10 can be used.
  • Prefix is added to the start of the file name.
  • Suffix is 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.

  • Y is greyscale.
  • YA is greyscale with alpha.
  • RGB is color, with no transparency.
  • RGBA is color with alpha.
  • Auto lets 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, and Blue Noise, which are ordered dithering patterns.
  • Floyd Steinberg, Atkinson, Stucky, and Sierra, 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.

  • Auto leaves the image as it is.
  • Premultiply Alpha multiplies the color of each pixel by its alpha.
  • Flood Transparent fills 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 Transparent sets fully transparent pixels to zero, which can make files smaller. New build tasks use this by default.