# Remove Artwork

This function is used to remove artwork items based on specified criteria.

Multiple tests can be specified.

You can remove an item if its x-y dimensions are less than a chosen value. By default the image will be removed if either dimension is less than the specified value. Choosing the w&h option requires that both dimensions be less than the specified value.

You can remove an item if it is at a particular index. The index field may contain any of the escape sequences described in Escape Sequences which are evaluated for each file.

You can remove an item if its picture type is equal or not equal to a chosen value.

You can remove an item if a picture's description field is equal or not equal to a specified value or if the field contains or does not contain the specified value. The description test is case insensitive and may contain any of the escape sequences described in Escape Sequences which are evaluated for each file.

The above tests may be ANDed or ORed.

Yate does lazy loads of images. It is possible that image data in a file is corrupt and cannot be rendered into a viewable image. When Yate detects this condition it replaces the invalid image with a large ret dot. Selecting the Always remove invalid artwork option will cause the invalid images to be removed.

The Do not remove the default artwork item option when set ensures that no tests are run against the item at index 0. Note that this setting takes precedence over an index test set to match index zero. Note also that the Always remove invalid artwork option takes precedence, so that it is possible that default artwork items will be removed if they were invalid.

The Leave at least one artwork item option when set, makes sure that at least one item will be retained. Note that the Always remove invalid artwork option takes precedence, so that it is possible that all artwork items will be removed if they were invalid. If the Do not remove the default artwork item option is set, this one is redundant.

You can remove an item if it is a duplicate. A duplicate in this instance is defined as having the same binary image data.