30.21 Image filter

30.21.1 Overview

The image filter checks whether a message contains images of a certain size or larger, for example scanned receipts or photos. Unlike the other attachment criteria (see chapter 30.18), it can optionally include images embedded in the message text, for instance when a smartphone inserts the scan directly into the text. The minimum width and height leave small graphics such as company logos in signatures, icons and tracking pixels out of consideration.

The criterion is available in the message filter of a profile, in the exception rules of tasks and in the pre-filter of the forwarding task (since version 4.13.0).


30.21.2 Structure of the criterion

Component Description
Minimum width (pixels) Width an image must have at least. 0 means no limit
Minimum height (pixels) Height an image must have at least. 0 means no limit. An image only counts if it reaches both minimum dimensions
Also evaluate embedded images Additionally considers the images embedded in the message text (default). Without the check mark, only images attached to the message as regular attachments count

30.21.3 Operators

Operator Description
contains At least one image of the message reaches the minimum dimensions
does not contain No image of the message reaches the minimum dimensions; this also applies to messages without any images

30.21.4 What counts as an image

  • The dimensions are read from the image files; JPEG, PNG, GIF, BMP, WebP and TIFF are supported. Other files, such as PDF documents with scanned pages, do not count as images. Check the attachment name or the attachment size for those.
  • Images whose dimensions cannot be read, such as damaged files, do not count.
  • An image counts as embedded if it is displayed in the HTML text of the message. An image that is merely attached to the message counts regardless of the check box.
  • The minimum dimensions refer to the pixels of the image file, not to the display size in the message. A logo that is displayed reduced in the signature but stored in a large size may therefore reach the dimensions; choose somewhat larger dimensions in that case.

30.21.5 Use case: Saving photographed receipts

Situation: Employees photograph receipts with their smartphones and send them by email. Depending on the device, the photo arrives as an attachment or embedded in the message text, each time accompanied by the logo from the signature.

Setting Value
Message filter Images contains from 800 × 600 pixels (including embedded)
Task Save attachments Option Process images embedded in message text as regular attachments enabled

The signature logo is much smaller than 800 × 600 pixels and does not trigger the profile; photos reach the dimensions. For the task to save embedded images as well, the task option must be enabled. The criterion alone only decides whether the message is processed (see chapter 9.3).


30.21.6 Notes

  • For the check, the program loads the message completely with its attachments; unlike criteria for subject or date, the message header is not sufficient.
  • The tabs of the retained messages (see chapter 8.9.8) store the dimensions of the images so that the criterion can be checked there. For messages of which only the header data is retained, it is shown as "checked only during processing".
  • The filter preview with sample messages (EML or MSG files) reads the dimensions directly from the files.