Application icon

Manipulate Artwork

This function is used modify artwork items. It can scale, change the format, square, set to greyscale and compress artwork items. The image data returned by this function is always extracted from the image produced by the final transformation. For that reason the size of the image can be changed. If you want to control the final size of the image use the Compress artwork if size is greater than setting.

Scale artwork if condition is greater than

You can scale an image if its x-y dimensions are greater than a selected value. You can choose to scale an image if either dimension is greater than the specified value (w | h). Alternately you can require that both the width and height must be greater than the supplied value (w&h) Note that Yate will not scale images smaller than 32x32. If you want to use the Settings-Artwork value, specify 0 or leave the field empty.

Format Change

Compression

Only available when the Format Change setting is not Force to PNG. When the Format Change setting is No Format Change, this option is ignored if the artwork item is not a JPEG.

The compression factor is specified as a number in the range of 0.0 to 1.0. A value of 0 implies use the system default compression value, which seems to be .75. The smaller the number, the smaller the image (more compression). The larger the number the larger the image (less compression). Note that there is no way to determine an image's current compression factor and because of that a specified compression is always applied.

Resolution Change

JPEG encoding

Only available when the Format Change setting is not Force to PNG. When the Format Change setting is No Format Change, this option is ignored if the artwork item is not a JPEG.
Set to Greyscale

Forces the artwork image to be shades or grey.

Make artwork square by fill mode

If an artwork item does not have the same width and height the following will occur:The expanded area will be filled as follows:If your are squaring artwork the following special condition exists:
Compress artwork if size is greater than

This test is always performed last. If after all other transformations an artwork item's size in bytes is greater than the supplied value an attempt will be made to decrease the size. The size may be entered as #, #kb or as #mb. # can be a positive integer or decimal value. You can also enter 0 which implies the initial image's size. Successive compression attempts are made to get the size less than the desired value. Note that if an attempt to lower the size is necessary, an artwork item which at the time of the test is not a JPEG will be re-encoded as a baseline JPEG image ... regardless of the previous transformations!

FLAC files have a maximum image size of ~16MB. In order to make it easier to specify a value which meets the requirements of FLAC file encoding, the value may be entered as FLAC.

There is no guarantee that the resultant size will be less than the specified value. The success or failure of the functionality can only be determined by inspecting the size of the image after the statement execution completes.

The above manipulations are the primary functions. At least one must be set.

The selected functions can be applied to all artwork items, only the first artwork item or all but the first artwork item.

Additionally you can limit the functions to an artwork item at a particular index, to images with or without a specific picture type and/or the result of a comparison test on the description field. The index and description fields may contain any of the escape sequences described in Escape Sequences. Description tests are always performed case insensitive.

If you pass \sa for the index, it will match a single selected artwork item. More information can be found in the Accessing Selected Artwork topic.

While this action statement can be used while executing grouped, it is far more efficient when executed stepwise.