Skip to content

Clarify accepted image-data formats (emoji also accepts WebP/AVIF) - #8538

Draft
spenhand wants to merge 1 commit into
mainfrom
spenhand/image-data-formats
Draft

Clarify accepted image-data formats (emoji also accepts WebP/AVIF)#8538
spenhand wants to merge 1 commit into
mainfrom
spenhand/image-data-formats

Conversation

@spenhand

Copy link
Copy Markdown
Contributor

Summary

The Image Data section in reference.mdx states the Data URI "supports JPG, GIF, and PNG formats" with no qualification. That contradicts the Emoji Formats section (emoji.mdx), which correctly lists JPEG, PNG, GIF, WebP, and AVIF for emoji — and it contradicts actual API behavior, where the accepted format is determined per-resource by sniffing the encoded image bytes, not from the declared data-URI content type.

This tripped up an integration: a developer reading the emoji endpoint's image field followed the link to Image Data, saw "JPG, GIF, PNG only," and concluded animated WebP couldn't be uploaded — when in fact it can.

Change

Reword the Image Data section to:

  • describe the Data URI as carrying a base64-encoded image;
  • note most endpoints accept JPG/GIF/PNG while some (e.g. emoji) accept additional formats like WebP/AVIF, and point readers to the specific resource;
  • clarify that the accepted format is determined from the image data itself.

No endpoint behavior changes — docs only.

The Image Data section stated the Data URI "supports JPG, GIF, and PNG formats"
without qualification, which contradicts the Emoji Formats section (emoji accept
JPEG, PNG, GIF, WebP, and AVIF) and the actual API behavior, where the accepted
format is determined per-resource from the encoded image bytes rather than from
the declared content type. Note that some resources accept additional formats
and point readers to the specific resource.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Discord 🔴 Failed Aug 12, 2026, 3:07 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant