[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# Cwebp CLI to optimize images

171 views · 0 likes · 2 posts


Dev Webilumeu (@dev-webilumeu) · 2024-07-26

cwebp is Google's CLI tool to optimize images and convert them to webp, it's available for all OSs

I want a user in my nextjs app to input a file and when he clicks submit to run the cwebp utility, get the optimized image and then do stuff with it (upload it to Firebase Storage)

Is this possible on vercel? Or is there a better way? Thanks :)


Pauline P. Narvas (@pawlean) · 2024-07-29

Hi @dev-webilumeu!

Great to have you here - welcome to the community! If you wanted to, feel free to drop by https://community.vercel.com/t/introductions/157. Would love to hear about what you're building :smiley: 

Sounds like an interesting app! Could you maybe use something like `webp-converter`?

https://www.npmjs.com/package/webp-converter