Limiting Representation Size
In order to prevent the generation of representations that are large enough to provoke out-of-memory errors, the Content Engine has a size limit for image representations that is set to 10 megapixels (10000000 pixels) by default. Any representation that would exceed the limit is downsampled to fit.
You can modify this limit on a per-publication basis by adding an
init-param
called max-image-size
to the imageVersionFilter
definition in a
publication's
web.xml
file. To set the limit up to 12 megapixels, for example, you
would need to add the following to the
imageVersionFilter
definition:
<filter> <filter-name>imageVersionFilter</filter-name> <filter-class>com.escenic.presentation.servlet.ImageVersionFilter</filter-class> <init-param> <param-name>max-image-size</param-name> <param-value>12000000</param-value> </init-param> </filter>
If you set max-image-size
too high, you run the
risk of provoking out-of-memory errors.