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:

(Auto-migrated image: description temporarily unavailable)

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

  1. Shutdown Confluence.

  2. Upgrade Java to the latest supported version.

  3. Set your environment variable to the new version of Java, as documented in Installing Java for Confluence.

  4. 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.

  5. In step 5, after you click on the Java tab, tick the check box "Use default":

    (Auto-migrated image: description temporarily unavailable)
  6. Click OK.

  7. Start Confluence.

    Be sure to confirm that your Confluence instance is using the new Java version, at Confluence Admin > System Information

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.