strapi-community / strapi-plugin-local-image-sharp

Dynamically resize, format and optimize images based on url modifiers.
https://strapi-community.github.io/strapi-plugin-local-image-sharp/
65 stars 17 forks source link

[Feature Request] Auto Format by Request Header #30

Open soranoo opened 1 year ago

soranoo commented 1 year ago

Look at the request accept header to determine which format to serve.

AndreasFaust commented 1 year ago

This would be amazing and turn Strapi into a CDN! For Strapi to get all needed information, the frontend of the app needs to activate Client Hints:

<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width" />