chrisben / image-thumb

NodeJS image thumbnail server
Other
21 stars 8 forks source link

orientation not reserved #27

Open panlina opened 1 year ago

panlina commented 1 year ago

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

chrisben commented 1 year ago

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!