Image dimensions using UploadThing?

Is there anyway to get the width and height dimensions of images being uploaded using UploadThing?
1 Reply
j0e
j0e10mo ago
You could briefly append it in the DOM and get the width and height after the fact but I agree knowing the width/height after uploading would be useful, especially on NextJS where <Image/> requires px dimensions.
Want results from more Discord servers?
Add your server