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

Unable to apply image effects to dimensionally large images

      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
          98 kB
          sinan.yildirim247208441
        2. image-properties.png
          41 kB
          Justin W.

            [CONFSERVER-55200] Unable to apply image effects to dimensionally large images

            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 373934 ]
            Javan (Inactive) made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            Jen Marfell (Inactive) made changes -
            Link New: This issue is duplicated by CONFSERVER-59837 [ CONFSERVER-59837 ]

            I'm closing this because this is the same issue as CONFSERVER-59837. Please watch this ticket instead for any updates.

            Javan (Inactive) added a comment - I'm closing this because this is the same issue as  CONFSERVER-59837 . Please watch this ticket instead for any updates.
            SET Analytics Bot made changes -
            UIS Original: 2 New: 4
            Bugfix Automation Bot made changes -
            Support reference count Original: 10 New: 11
            SET Analytics Bot made changes -
            UIS Original: 4 New: 2
            SET Analytics Bot made changes -
            UIS Original: 3 New: 4
            SET Analytics Bot made changes -
            UIS Original: 5 New: 3
            SET Analytics Bot made changes -
            UIS Original: 4 New: 5

              Unassigned Unassigned
              jwyllys Justin W.
              Affected customers:
              15 This affects my team
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: