Skip to content

feat: add /image/avif endpoint - #270

Open
ChrisJr404 wants to merge 1 commit into
mccutchen:mainfrom
ChrisJr404:add-image-avif-endpoint
Open

feat: add /image/avif endpoint#270
ChrisJr404 wants to merge 1 commit into
mccutchen:mainfrom
ChrisJr404:add-image-avif-endpoint

Conversation

@ChrisJr404

Copy link
Copy Markdown

Adds an /image/avif endpoint and wires AVIF into the Accept-based negotiation on /image, so a request with Accept: image/avif gets it back. Works the same way the existing png/jpeg/webp/svg formats do.

The asset is the same picture as the other image formats, just re-encoded to AVIF.

Closes #195.

Serves an AVIF image at /image/avif and returns it from /image when the
Accept header asks for image/avif. Closes mccutchen#195.
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.

feat: add /image/avif endpoint

1 participant