> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp

> 適用於 WhatsApp 商家檔案的媒體規範

## 商家檔案圖片

商家檔案圖片可透過[更新使用者](/docs/apis/user/update-user)的
`profilePictureUrl` 設定，並由
[WhatsApp 商家檔案](/docs/apis/user/whatsapp-profile)以 `profile_picture_url` 回傳。

<ul class="custom-bullets">
  <li>支援的格式：JPEG 與 PNG。</li>
  <li>檔案最大大小：5 MB。</li>
  <li>圖片必須為正方形。</li>
  <li>最小尺寸：192 px x 192 px。</li>

  <li>
    最大尺寸：無——較大的圖片會被接受並由 WhatsApp 縮小，WhatsApp
    儲存的最長邊為 640 px。
  </li>

  <li>建議尺寸：640 px x 640 px。</li>
</ul>

不是正方形、低於 192 px x 192 px、超過 5 MB，或不是 JPEG 或 PNG 的圖片，會在任何內容送至 WhatsApp 之前，以指出問題的 `400` 拒絕。

<Tip>
  WhatsApp 會將商家檔案圖片裁切為圓形顯示，因此請將重要內容——logo、人臉——置中並遠離四角。
</Tip>

<Warning>
  帶有透明背景的 PNG 會被 WhatsApp 以黑色背景渲染。若這不是你想要的效果，請在上傳前先將圖片平面化到純色背景上。
</Warning>
