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

WebP | AVIF #159

Open
tlgimenes opened this issue Oct 19, 2023 · 1 comment
Open

WebP | AVIF #159

tlgimenes opened this issue Oct 19, 2023 · 1 comment

Comments

@tlgimenes
Copy link

tlgimenes commented Oct 19, 2023

Hi folks, pretty neat project, congrats!

I'm building an image cdn for my project. This image CDN is pretty similar to how imagekit and cloudflare images operate. I want to:

  1. Fetch an image from an external source (url) in png/jpeg format
  2. Resize/crop the image
  3. Encode into webp / avif depending on the brower's User Agent.

I can use photon for 1 and 2, however the step 3 is missing. I know Rust has support for this so it shouldn't be hard to add support for this in photon.
My question is: Would you be interested in a contribution adding support for webp/avif?

Thanks!

@ccbikai
Copy link

ccbikai commented Dec 18, 2023

Hi folks, pretty neat project, congrats!

I'm building an image cdn for my project. This image CDN is pretty similar to how imagekit and cloudflare images operate. I want to:

  1. Fetch an image from an external source (url) in png/jpeg format
  2. Resize/crop the image
  3. Encode into webp / avif depending on the brower's User Agent.

I can use photon for 1 and 2, however the step 3 is missing. I know Rust has support for this so it shouldn't be hard to add support for this in photon. My question is: Would you be interested in a contribution adding support for webp/avif?

Thanks!

I currently use a third party library https://github.com/ccbikai/cloudflare-worker-image

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

No branches or pull requests

2 participants