Image Message

Amity will automatically optimize the image and when queried, will return the image in small, medium and large sizes. If the image is marked as isFull on upload, the original size of the image can also be returned.

Requirements for Images

  • Supported image types are JPG and PNG.

  • The maximum file size of the image is 1 GB.

When an image is uploaded, it is automatically resized into multiple sizing options. The size of the image is determined by its longest dimension (in pixels) with the aspect ratios being unchanged.

Sending a Message with Image

To send an image message, you must pass in a valid image URL. The SDK will automatically send it to the server. You can also pass in an optional caption as part of the message. You can add up to 1,000 characters of text caption per message.

To send an image in original size, set optional isFullImage() to true.

Note: File size is limited to 1 GB

Image Message Status Sending

Image Status Uploading

Last updated