Image cropping in the Fluid UI Works

*Note 8/24/2021 – 8.59 Classic UI CropImage() now is working

This is a follow up to two previous postings about Images, cropping and the Fluid UI

We talked about delivered PeopleCode functions for manipulating user images. One of them, CropImage(), had some issues:

  1. It does not work in Classic UI
  2. Current 8.58 PeopleTools PeopleBooks documentation has not been updated to reflect that this function returns and integer, not a Boolean.

While researching user images in Fluid UI, I found that CropImage() does work on Fluid pages.

It appears that the PeopleTools team has refactored this image function for the Fluid UI but was not able to get the function working in classic. Since most new efforts are Fluid, I believe the decision was to just release with the fluid enabled function.

The PeopleCode syntax helper does reflect the current correct parameter and return values of the function:

PeopleBooks is still displaying the old 8.0X description of the function:

To reiterate the Classic UI CropImage() error:


*Note: PeopleTools 8.58 currently has a bug causing the CropImage() function generating an “OnReadyState” Error. (Doc ID 2769073.1, Bug: 32773424). Oracle solution is a fix in PeopleTools 8.59 or 8.60.

As of this posting, Doc ID 2769073.1 has not been updated with any new information or show that the function does work in Fluid.

The function in Fluid seems to work most of the time, as in “mostly stable”. I have received “OnReadyState” errors occasionally during testing. After receiving one of these, the user’s browser environment is usually corrupted. The fix seems to be to delete all browser cache before re-attempting anything else in the PeopleSoft environment (not just the cropping page).

Should you need to provide the users with the ability to crop an uploaded image, I would recommend creating that utility in a Fluid page.

Keeping with a consistent UI, I would recommend creating your entire custom application in Fluid if cropping is required.

Randall Groncki

Oracle ACE ♠ PeopleTools Developer since 1996 Lives in Northern Virginia, USA

View all posts by Randall Groncki →