4. The Screen Setup of PhotoLine
4.12 The Export Attributes
The Export Attributes dialog contains SVG properties on the one hand and
special export settings that can be assigned to layers on the other.
SVG Properties
The following SVG properties can be assigned:
- Title: Sets the <title> element for the layer.
- Description: Sets the <desc> element for the layer
- CSS-Class: Sets the "class" attribute
- CSS-Style: Sets the "style"-attribute
Please note that PhotoLine uses these values unchanged when exporting
SVG. So they must be syntactically correct, otherwise you will get a
corrupted SVG file.
Export Settings
In PhotoLine you can assign export settings to individual layers - and also to
pages (see chapter 4.10). Later you can export all layers with such settings
in one go. This is useful, for example, if you manage several icons in one
document or create a watch face for a smartwatch. A layer can have several
export settings. In this case, several files will be created for this layer during
the export.
By default, the export settings only show the following:

The
first drop-down list gives you access to the presets. This allows you to
save the current export settings of the layer as a preset, or apply previously
saved settings to the active layer.
Next to this, you specify which area of the layer is to be exported:
When exporting, a page-sized file is created, but of course only the
current layer is visible. This is especially useful for icons.
If the active layer is a group, the sum of the sizes of all children will be
used as output size, including the invisible ones. So you can create an
invisible rectangle in a group and use it to directly control the output size.
The visible content of the layer determines the output size.
With the plus sign you can add a new export setting.
"Quick Export Path" is a destination directory used for the Quick Export
function. This can be set by double-clicking on it, but more on that later.
If you create a new setting via the plus sign, an additional line will appear:

A
file will be created for each setting later when exporting.
There are three input fields:
- the scaling
- This allows the layer to be exported scaled. "1x" means that the layer is
exported in original size, "2x" accordingly in double size. You can also
export the layer with a fixed width or height. "256w", for example,
exports with a width of 256 pixels, while "256h" exports with a height of
256 pixels. For scaling, you can use predefined values from the
drop-down list and enter values yourself.
- the suffix and prefix
- When exporting a layer, the layer name is used as the basis for the file
name. To ensure that a unique file name is still created with multiple
export settings, you can define a suffix and a prefix.
- The suffix is appended to the layer name and adjusts to the scaling by
default. For example, if the scaling is "2x", "@2x" is set as the suffix; if
the scaling is "256w", it becomes "-256w". However, you can also enter
a different value.
- The prefix is set before the layer name. If there is a "/" in the prefix, the
created file will be placed in a subfolder, so for the prefix "Test/" it will
be in the folder "Test". If the subfolder name is "+", the "+" is replaced
by the name of the group in which the layer is located.
- the file format and file settings
- You can specify the desired file format and define the settings for it. For
example, it is possible to export a layer both as a PNG with true colors,
and as a PNG reduced to 256 colors.
In the Export Attributes there are three additional commands at the bottom
of the dialog:
- Add Export Setting
- This allows you to create a new setting - as with the plus sign in the first
export settings entry.
- Export
- Export exports the active layer and all child layers that have export
settings.
- You will be asked for the name of a folder where the files will be
created. After exporting, the folder name will be taken as the quick
export path.
- The file name is formed from the previously set prefix, the layer name
and the suffix. As with the prefix, a "+" in the layer name is replaced by
the name of the group. If the filename already exists, a number is
appended so that it becomes unique.
- Quick Export
- If you need to export frequently, the normal export has two
disadvantages. First, you are always asked for a folder name, and
second, when you save to the same folder several times, a number is
appended to the file names so that they are unique.
- Both are omitted with Quick Export. It uses the last used export folder
or the one that was explicitly set before via "Quick Export Path". And it
overwrites existing files.