mirror of
https://github.com/Sosokker/chefhai.git
synced 2025-12-19 05:54:08 +01:00
scale down image on get sign url
This commit is contained in:
parent
79add76034
commit
56194b8e97
@ -25,7 +25,12 @@ export async function uploadImageToSupabase(imageBase64: string, imageType: stri
|
||||
const { data, error } = await supabase
|
||||
.storage
|
||||
.from("food")
|
||||
.createSignedUrl(filePath, 31536000);
|
||||
.createSignedUrl(filePath, 31536000, {
|
||||
transform: {
|
||||
width: 800,
|
||||
height: 600,
|
||||
}
|
||||
});
|
||||
|
||||
if (error) {
|
||||
console.error("[GET PUBLIC URL ERROR]", error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user