Jira API cropping properties

zavullon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2020

I'm trying to understand what does "cropping properties" in "create_temp_user_avatar" method mean. I'm trying to set user avatar using custom image. I need my image to be as centralized as possible. For example if it's a square image I want it to be maximum sized, if width is bigger than height I want it to be maximum height and centralized, if height is bigger than width I want it to be maximum width and centralized. But I'm very confused with "cropperOffsetX" "cropperOffsetY" and "cropperWidth" parameters. How do they depend on width and height of my image if I want it to be centralized?

0 answers

Suggest an answer

Log in or Sign up to answer