mariojuanaaaOriginal post
Rank 1: Thread
How do image transformation billing work?
I dont believe Im transforming them, but Im looking at 50ish image transformations
Im just using
TypeScript
export const getFilePreview = async (fileId: string) => { const fileUrl = storage.getFilePreview(appwriteConfig.storageId, fileId); return fileUrl as string;};Also, show i be storing the entire storage.getFilePreview returned link in my db or just my fileId? I want to reduce bandwidth and I believe storage.getFilePreview uses up the bandwidth (does it?)
Summary
Developers are confused about how image transformation billing works. They are not sure if they are transforming images but are making around 50 transformations. They are using a function `getFilePreview` to get the file URL. They are unsure if they should store the entire URL or just the fileId in their database to reduce bandwidth consumption. Storing just the fileId might help to reduce bandwidth usage as the function `storage.getFilePreview` could be using bandwidth.