Skip to main content
Skip table of contents

Channel Filter: Show only transparent images

For the connector “Remove.bg” it makes sense to enable users to filter for transparent images that the connector created, whether or not they are related to the original. This can be achieved with the following filter.

Show Items with an alpha channel (ARGB) uploaded by a connector service user.

CODE
{
    "kind": "AndFilter",
    "filters": [
        {
        "kind": "TermFilter",
        "field": "imageMetadata.channels",
        "term": "Argb"
        },
        {
        "kind": "TermFilter",
        "field": "audit.createdByUser",
        "term": "e12e84c97419476c8a58bb7c8e09ed57"
        }
    ]
}

Will filter for all Content Items:

  • with an Alpha channel (channels in the image metadata, where A in Argb stands for Alpha)

  • created (uploaded) by the service user used for the integration

You can add contentTypeId for File Types, too and only show images:

CODE
{
    "kind": "AndFilter",
    "filters": [
        {
        "kind": "TermFilter",
        "field": "imageMetadata.channels",
        "term": "Argb"
        },
        {
        "kind": "TermFilter",
        "field": "audit.createdByUser",
        "term": "e12e84c97419476c8a58bb7c8e09ed57"
        },
        {
			"kind": "TermFilter",
			"field": "contentSchemaId",
			"term": "ImageMetadata"
		}
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.