Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Add notice about image_url precedence #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions page_attachments.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,17 @@ A valid URL to an image file that will be displayed inside a message attachment.

Large images will be resized to a maximum width of 400px or a maximum height of 500px, while still maintaining the original aspect ratio.

**Notice:** If `image_url` is supplied `thumb_url` is ignored.

![Screenshot of an attachment with a large image](/img/api/attachment_image.png)

###thumb_url
A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP.

The thumbnail's longest dimension will be scaled down to 75px while maintaining the aspect ratio of the image. The filesize of the image must also be less than 500 KB.

**Notice:** If `image_url` is supplied `thumb_url` is ignored.

![Screenshot of an attachment with a thumbnail image](/img/api/attachment_thumb.png)

---
Expand Down