Back

How do Image transformation billing work?

  • 0
  • React Native
  • Web
  • Storage
  • Cloud
mariojuanaaa
6 Mar, 2025, 17:07

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?)

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more