Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support webp images #273

Open
MillHaus33 opened this issue Oct 29, 2022 · 4 comments · May be fixed by #622
Open

Support webp images #273

MillHaus33 opened this issue Oct 29, 2022 · 4 comments · May be fixed by #622
Labels

Comments

@MillHaus33
Copy link

Feature Request

Allow webp images to be rendered

@shuding
Copy link
Member

shuding commented Oct 30, 2022

It’s very likely that we will not implement this feature. For static images, you can convert its type manually; for images from a CDN (e.g. Cloudinary or Unsplash), usually you can specify the format via a parameter.

@styfle
Copy link
Member

styfle commented Oct 30, 2022

You can also use Next.js Image Optimization. Something like:

https://example.com/_next/image?url=%2Fapi%2Fog&w=1920&q=75

Update: you can use import { getImageProps } from 'next/image' to generate this string

@Slashgear
Copy link

Hi ! @shuding

I took time during week to try to handle webp image format in satori directly.
Probably faced the issue you faced with the file format decoding.

I figured out the only this that I needed to decode was the image width and height. Am I wrong ?
Could we get it from the EXIF metadatas ?

@StephenTangCook
Copy link

This limitation should at least be doc'd. Is there a list of supported image types somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants