sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Resize losing EXIF data

Open paulieo10 opened this issue 9 years ago • 3 comments

Hi,

I am using Sharp to resize images after upload to my NodeJS webserver. I'm doing this to reduce the file size saved on the server. However, I would like to retain the EXIF data, specifically the GPS data and this is being lost.

Is this possible?

Many thanks, Paul

paulieo10 avatar Feb 22 '17 17:02 paulieo10

Hello, did you see withMetadata?

(EDIT: updated link)

lovell avatar Feb 22 '17 17:02 lovell

Hi, not I didn't spot that.

Thank you very much, all working now :)

paulieo10 avatar Feb 23 '17 08:02 paulieo10

For new arrivals, the broken link in @lovell's post is corrected with: https://sharp.pixelplumbing.com/en/stable/api-output/#withmetadata

jessehallam avatar Jul 31 '19 15:07 jessehallam