## Scale Artwork / Change Type

This function is used to potentially scale and/or change the type of artwork items.

You can scale an image if its x-y dimensions are greater than a chosen value. By default the image will be scaled if either dimension is greater than the specified value. Choosing the w&h option requires that both dimensions be greater than the specified value. Note that Yate will not scale images smaller than 32x32.

You can force an image to be a jpg or png.

When forcing an image to be a to jpg, you can use the system default compression factor or you can explicitly set the compression factor. The compression factor is specified as a number in the range of 0.0 to 1.0. The smaller the number, the smaller the file (more compression). The larger the number the larger the file (less compression). It appears as if the system default is approximately 0.75. Note that if this option is specified, the modification of the artwork item will always occur if the only other option is to force the image to jpg, even if the item is initially a jpg.

You can force artwork to be square by means of the Make artwork square option. If an artwork item does not have the same width and height the following will occur:

- The image's width and height will be resized to the larger of its initial width and height.
- The expanded area will be transparent.
- The image will be centered in the expanded dimension.
- If the image is not already a png image it will become one.

The selected functions can be applied to all artwork items, only the first image in a file or all but the first image in a file. Additionally you can limit the functions to images with a specific picture type.

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