Issue
Image thumbnail is rotated 90 degrees when an image attachment is added in portrait orientation.
Steps to reproduce
-
Create a case.
-
Add a portrait mode image as an attachment to the case.
-
The Thumbnail for the image attachment is displayed rotated by 90 degrees.
Root Cause
The Portrait mode image contains EXIF orientation information. The Pega Platform ™ uses javax ImageIO while generating thumbnails. ImageIO ignores EXIF orientation information which prevents the auto-rotate of the thumbnail. The current javax ImageIO library does not support orientation information.
Solution
This issue is planned to be addressed in a future Pega Platform release. Issues are prioritized based on impact, severity, and capacity. The specific release for the fix has not yet been determined. This section will be updated with release details when the fix for this issue is available.
The currently recommended workaround for this behavior is to display a generic thumbnail instead of the image thumbnail, by taking the following steps:
If using Document Based attachments:
-
Save-As the OOTB When rule @baseclass.pyCanGenerateDocumentThumbnail into an application ruleset.
-
Set the Then condition to return false.
-
Save the When rule.
If using Non-Document Based attachments:
-
Save-As the OOTB When rule @baseclass.pyCanGenerateThumbnail into an application ruleset.
-
Set the Then condition to return false.
-
Save the When rule.
Related content