uppy icon indicating copy to clipboard operation
uppy copied to clipboard

thumbnail-generator: black border due to incorrect cropping

Open lucadalli opened this issue 2 years ago • 3 comments

Thumbnails for images from my camera roll have a black border. Seems to be related to EXIF orientation. Below is a comparison showing the thumbnail of the unaltered image (EXIF orientation: rotate CW 90) and the same image after exporting it from Photoshop (EXIF rotation: normal).

image

broken-thumb.jpg broken-thumb-photoshop.jpg

lucadalli avatar Sep 06 '21 13:09 lucadalli

@Murderlon Are you able to use the images attached to reproduce the issue on your end?

We use the images generated from the thumbnail-generator extensively in our application and the mismatch between the aspect ratios of the thumbnail and the original image is causing some nasty bugs.

lucadalli avatar Sep 08 '21 09:09 lucadalli

I was able to reproduce this on the dashboard. But looking at it quickly I didn't see what causes this. 95% of the thumbnail logic is browser APIs and the exifr library, not a custom implementation. Would have to look deeper later.

Murderlon avatar Sep 08 '21 10:09 Murderlon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 16 '22 00:09 stale[bot]