ConnectApi.PhotoInput

Specify how to crop a photo that has already been uploaded.

PropertyTypeDescriptionAvailable version
cropSizeIntegerThe length, in pixels, of any edge of the crop square.29.0
cropXIntegerThe position X, in pixels, from the left edge of the image to the start of the crop square. Top left is position (0,0).29.0
cropYIntegerThe position Y, in pixels, from the top edge of the image to the start of the crop square. Top left is position (0,0).29.0
fileIdString18 character ID of an existing file. The key prefix must be 069 and the file must be an image and be smaller than 2 GB. Images uploaded on the Group page and on the User page don’t have file IDs and therefore can’t be used.25.0
versionNumberIntegerVersion number of the existing content. If not provided, the latest version is used.25.0

See Also