跳到主要内容

ThumbnailsRequest

The crop rectangle to apply to an avatar image.

NameTypeDescriptionNotes
tmpFileStringThe temporary image to crop, as returned in the data of an upload made with autosave off. Only the file name part of the value is used. Omit it to re-crop the photo the profile already has.[optional] [example: photo_temp_123.jpg] [nullable]
xInteger (int32)The distance in pixels from the left edge of the original image to the left edge of the crop rectangle.[optional] [example: 100]
yInteger (int32)The distance in pixels from the top edge of the original image to the top edge of the crop rectangle.[optional] [example: 50]
widthInteger (int32)The width of the crop rectangle in pixels. Passing 0 together with height and tmpFile keeps the whole uploaded image instead of cropping it.[optional] [example: 200]
heightInteger (int32)The height of the crop rectangle in pixels. Passing 0 together with width and tmpFile keeps the whole uploaded image instead of cropping it.[optional] [example: 200]