Back

How to get original height & width of image?

  • 0
  • Self Hosted
  • Web
pix3l
14 Mar, 2024, 08:14

Is there an easy way to get height & width of an image in a bucket? Or at least a way to generate a thumbnail with getFilePreview keeping the right aspect ratio, instead of croping?

TL;DR
Developers want to know how to retrieve the original height and width of an image from a bucket. They also seek a method to generate a thumbnail with getFilePreview while maintaining the correct aspect ratio instead of cropping it.
Steven
14 Mar, 2024, 08:19

I thought the original aspect ratio is retained if you only supply height or width 🧐

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