-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
6.2.4
-
11
-
Severity 3 - Minor
-
4
-
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
- Create a test page
- Attach an image greater than 10,000 x 10,000 pixels
- Select an image while in edit mode, and click Properties
- 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.
- 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.
- is duplicated by
-
CONFSERVER-59837 Processing drop-shadow image effect on certain images causes long JVM safepoint pauses
- Closed
- is related to
-
CONFSERVER-41164 High resolution TIFF images causing Out Of Memory during generation of preview
- Closed
- relates to
-
CONFSERVER-55315 Add a maximum resolution setting for image effects
- Closed
- mentioned in
-
Page Loading...