IPTCStreamfilter Configuration

Configuring the supplied IPTCPStreamFilter is slightly more complicated than configuring a standard filter. The reason for this is that it is actually implemented as a wrapper around a legacy class, com.escenic.syndication.xml.filter.IPTCPreFilter. This means that you actually need to create two .properties file, one for IPTCPStreamFilter and one for IPTCPreFilter. However, examples of all the files you need are supplied in the /engine/contrib/import/filter folder, so you can just copy them to an appropriate location in one of your import task configuration folders and set the preFilters.jpg property of the task configuration file to point to IPTCStreamFilter.properties.

IPTCStreamFilter.properties must contain the following lines:

$class=com.escenic.syndication.xml.filter.LegacyFilterSupport
filter=./IPTCPrefilter

IPTCPreFilter.properties may contain the following lines:

$class=com.escenic.syndication.xml.filter.IPTCPreFilter
imageEncoding=ISO-8859-1

The imageEncoding property is optional. It specifies the encoding of the IPTC data embedded in the images. It may be set to either ISO-8859-1 or UTF-8 (the default).

Given the example folder structure described in Creating Import Tasks, if you wanted to use the filter for the publication pub1 then you would copy these files to configuration-root/import/pub1/filters. and set preFilters.jpg in configuration-root/import/pub1/ImportConfiguration.properties to ./filters/IPTCStreamFilter.