image-thumb icon indicating copy to clipboard operation
image-thumb copied to clipboard

orientation not reserved

Open panlina opened this issue 1 year ago • 1 comments

The orientation info in exif is not reserved, thus the image mis-oriented in image viewer.

panlina avatar Mar 04 '23 05:03 panlina

It looks like there's a withMetadata function that ensures exif is saved. @panlina could you please try adding a line

.withMetadata()

there before toBuffer: https://github.com/chrisben/image-thumb/blob/master/services/resizer.js#L93 and see if this works. Thanks!

chrisben avatar Mar 07 '23 14:03 chrisben