Confluence Images Break after Resizing
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
When an image is resized in Confluence edit mode, the image breaks:
The following appears in the atlassian-confluence.log
:
1
2
2014-04-24 10:29:43,084 ERROR [main] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet Could not initialise CAPTCHA service. The most likely reason for this is that Java's graphics subsystem is not properly configured. Try starting Confluence's JVM with the -Djava.awt.headless=true option. no awt in java.library.path
java.lang.UnsatisfiedLinkError: no awt in java.library.path
Cause
The Java graphical library is corrupted, which breaks the image resize feature in Confluence.
Resolution
Shutdown Confluence.
Upgrade Java to the latest supported version.
Set your environment variable to the new version of Java, as documented in Installing Java for Confluence.
After you set the new version of Java as your environmental variable, follow the Configuring System Properties guide in case you're starting Confluence as a Windows service.
In step 5, after you click on the Java tab, tick the check box "Use default":
Click OK.
Start Confluence.
Be sure to confirm that your Confluence instance is using the new Java version, at Confluence Admin > System Information
Was this helpful?