# Media requirements

Image, video and document requirements for LinkedIn posts, custom video thumbnails, and the rules for media URLs.

## Images

| Property | Requirement |
|----------|-------------|
| Max images | 20 per post |
| Formats | JPEG, PNG, GIF |
| Max file size | 8 MB per image |
| Recommended | 1200 x 627 px |
| Min dimensions | 552 x 276 px |
| Max dimensions | 8192 x 8192 px |

| Type | Ratio | Dimensions | Use |
|------|-------|------------|-----|
| Landscape | 1.91:1 | 1200 x 627 px | Link shares, standard |
| Square | 1:1 | 1080 x 1080 px | Engagement |
| Portrait | 1:1.25 | 1080 x 1350 px | Mobile feed |

## Videos

| Property | Requirement |
|----------|-------------|
| Max videos | 1 per post |
| Formats | MP4, MOV, AVI |
| Max file size | 5 GB |
| Max duration | 10 minutes (personal), 30 minutes (organization page) |
| Min duration | 3 seconds |
| Resolution | 256 x 144 px to 4096 x 2304 px |
| Aspect ratio | 1:2.4 to 2.4:1 |
| Frame rate | 10 to 60 fps |

Recommended: 1920 x 1080 px, 16:9 or 1:1, 30 fps, H.264 with AAC audio at 192 kbps, 10 to 30 Mbps.

## Custom thumbnails

Set `thumbnail` on the video media item to replace LinkedIn's automatic cover.

```json
"mediaItems": [
  {
    "type": "video",
    "url": "https://cdn.example.com/demo.mp4",
    "thumbnail": "https://cdn.example.com/demo-cover.jpg"
  }
]
```

The thumbnail is best-effort. When it cannot be fetched or LinkedIn refuses it, the video still publishes with LinkedIn's automatic cover and no warning is returned.

## Documents

| Property | Requirement |
|----------|-------------|
| Max documents | 1 per post |
| Formats | PDF, PPT, PPTX, DOC, DOCX |
| Max file size | 100 MB |
| Max pages | 300 |

## Media URLs

A media URL must:

- Be publicly accessible with no authentication.
- Return the media bytes with the correct `Content-Type` header.
- Not redirect to an HTML page.
- Sit on a fast host.

Dropbox, OneDrive and iCloud links return an HTML page instead of the file and fail.

[Google Drive links](/guides/media-uploads#google-drive-links) work when the file is shared with "Anyone with the link". Test a URL in an incognito window, or upload through the [media endpoint](/guides/media-uploads).

Zernio proxies Supabase storage URLs automatically.