Uppy: Expose image dimensions and exif data via thumbnail generator

Created on 4 Apr 2020  路  3Comments  路  Source: transloadit/uppy

Hi folks! Since the Thumbnail Generator already uses exif data from exifr, I'm wondering if it would be possible and easy to expose image dimensions, or maybe the exif object via a method or file meta data?

It would be super useful to show thumbnails respecting their aspect ratio, for example, while the upload happens.

Thanks so much!

Feature

Most helpful comment

What I'd prefer to see is a separate exif data plugin. Then you could use the exif data without generating thumbnails, and you'd avoid relying on a side effect of the thumbnail generator.

All 3 comments

What I'd prefer to see is a separate exif data plugin. Then you could use the exif data without generating thumbnails, and you'd avoid relying on a side effect of the thumbnail generator.

Agreed with @goto-bus-stop! That鈥檚 what we also discussed with @MikeKovarik in https://github.com/transloadit/uppy/issues/2086 and https://github.com/transloadit/uppy/pull/2140.

Will gladly review a PR with the image meta data plugin for Uppy!

Just today I needed this, since the thumbnail generation basically crashes any low-end mobile phone.

Was this page helpful?
0 / 5 - 0 ratings