Antoine-lb / photoroom-sveltekit-help

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implementing Photoroom API in SveltKit

Hello 👋 I apologize for the beginner question, but I am struggling to implement the API. I have the image, but I am unsure how to pass it to the API (blob, base64, stream, etc.). I am not familiar with working with images in NodeJS.

The documentation shows how to read the image from disk, but my image is coming from the client.

I have attempted two methods - fetching the image from an S3 bucket (preferred method) and from a form with an input file - but neither of them have worked 😂

Any help would be appreciated. Thank you!

About


Languages

Language:TypeScript 60.5%Language:JavaScript 17.9%Language:Svelte 12.7%Language:HTML 8.8%