Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-55200

Unable to apply image effects to dimensionally large images

XMLWordPrintable

      Summary

      Attempting to apply image effects to some larger images results in an error message and users are prevented from applying said effects.

      This does not always occur for all images, but JPG's around ~2.9MB+ can experience this issue. You can confirm whether you are experiencing the issue by reviewing the logs for the below entry.

      Repro Steps

      1. Create a test page
      2. Attach an image greater than 10,000 x 10,000 pixels
      3. Select an image while in edit mode, and click Properties
      4. In the image properties modal, you will receive this message:

        This image is too large to rotate or apply image effects. You'll need to upload a smaller version of the file.

      5. Thus, you are prevented from applying affects to the image

      Note: Large size image files up to at least 5MB were tested, but with smaller dimensions. They did not exhibit this issue.

      Expected Results

      Users are able to apply effects to large (dimensionally) images.

      Actual Results

      Users cannot apply effects to large (dimensionally) images, the following message is seen:

      Log entry

      The following is logged when this issue occurs:

      WARN [http-nio-8443-exec-17] [confluence.image.effects.ImageFilterServlet] transformAndRespond Timed out while doing the transform
       -- referer: https://localhost:8443/conf624/pages/resumedraft.action?draftId=5275657&draftShareId=7b1a548a-bd7d-4919-a0ef-08faf271b2b1 | url: /conf624/download/thumbnails/5275656/myimage.jpg
       | traceId: f6ea544c01c2fbbf | userName: admin
      java.util.concurrent.TimeoutException
              at java.util.concurrent.FutureTask.get(FutureTask.java:205)
              at com.atlassian.confluence.image.effects.ImageFilterServlet.transformAndRespond(ImageFilterServlet.java:273)
              at com.atlassian.confluence.image.effects.ImageFilterServlet.writeTransformToResponse(ImageFilterServlet.java:188)
              at com.atlassian.confluence.image.effects.ImageFilterServlet.doGetInTransaction(ImageFilterServlet.java:155)
              at com.atlassian.confluence.image.effects.ImageFilterServlet.lambda$doGet$0(ImageFilterServlet.java:132)
      

      Workaround

      Upload a smaller copy of the same image to the page.  You can also prevent image effects from being applied to large images by setting a JVM parameter with a max file size:

      -Datlassian.image_filter.transform.max_data_size=1000000
      

      This will limit transformations to files that are smaller than 1MB only.

       We have confirmed that the workarounds listed in Image Effects Are Not Displayed In Confluence 5 5 Or Later do not apply to or resolve this issue.

        1. imageinfo.png
          imageinfo.png
          98 kB
        2. image-properties.png
          image-properties.png
          41 kB

              Unassigned Unassigned
              jwyllys Justin W.
              Votes:
              15 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: