Task #3433
open
Add options to change profile photo format
Added by David Štekl over 1 year ago.
Updated about 1 year ago.
Description
If we send a profile photo to other systems, it is often necessary to follow the required format. For example, for the active directory (thumbnailPhoto attribute) it is usually around 100 KB.
The goal is to prepare a processor or script that will directly adjust the photo to the required size.
- Status changed from New to Needs feedback
- % Done changed from 0 to 80
I prepared and tested a processor that will adjust the inserted profile photo according to the configuration - ExtrasPhotoResizeProcessor.
I also created new Groovy scripts that are useful for working with profile photos. One script for sync photos from active directory to IdM and one for provisioning which also resizes photos.
More in documentation here: https://wiki.czechidm.com/devel/documentation/modules_extras/resize_profile_photo
- Assignee changed from David Štekl to Ondřej Kopr
- Assignee changed from Ondřej Kopr to Peter Štrunc
- Status changed from Needs feedback to In Progress
- Assignee changed from Peter Štrunc to David Štekl
I created PR for this task here: https://github.com/bcvsolutions/czechidm-extras/pull/108
It looks and works great. I have just a few minor things:
- In checkAndResizeImage in ExtrasUtils I would check for the maxSizeKb limit before writing the image to disk and write only after it fits the criteria
- Please create tests for this processor.
Also available in: Atom
PDF