Limit the impact of Image Effects on Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

Image Effects within Confluence allows you to customize the display of any attached image to make it look fancy. However, on some occasions, that image might be too big in size or too big in the number of pixels. This might create a CPU spike for Confluence when applying those effects.

We already have a bug to track this  CONFSERVER-55200 - Getting issue details... STATUS  

Solution

The solution to this is to limit the impact of those images on the stability of your environment. See Configuring System Properties to find out how to apply a system property in your environment. 

This system property will prevent the image effects from processing an image larger than 1MB

-Datlassian.image_filter.transform.max_data_size=1000000

This system property will prevent the image effects from processing an image that has more than 4000x4000 pixels as a resolution

-Datlassian.image_filter.transform.max.pixel=4000

From Confluence 7.7, an additional system property atlassian.image_filter.transform.max.pixel.drop_shadow applies to the drop shadow image effect. This property introduces an even lower pixel limit when attempting to apply a drop shadow.


Last modified on Aug 4, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.