appwrite / appwrite/appwrite

🚀 Enhancement: Add `smart` mode to image preview output

Open
#8,476 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
57.4k
Forks
5.7k
Avg merge
14h 50m
Merged PRs (30d)
276

Description

### 🔖 Enhancement description

`smart` should be able to find the optimised image format for the coming request by header or other hints. For example, we can serve `AVIF` instead of `Webp` in Chome and the original format should be served if the browser doesn't support `AVIF` and `Webp` ~i.e. IE~
![image](https://github.com/user-attachments/assets/f31029cd-b85a-4e2b-947f-1d8ec8607617)
![image](https://github.com/user-attachments/assets/30848799-2afd-4792-ac1f-71d58bbf0ad6)

### 🎤 Pitch

By implementing the `smart` mode, we can give the best-fit image format.

### 👀 Have you spent some time to check if this issue has been raised before?

- [X] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.