Sharp: Resize losing EXIF data

Created on 22 Feb 2017  路  3Comments  路  Source: lovell/sharp

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

question

Most helpful comment

Hello, did you see withMetadata?

(EDIT: updated link)

All 3 comments

Hello, did you see withMetadata?

(EDIT: updated link)

Hi, not I didn't spot that.

Thank you very much, all working now :)

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

Was this page helpful?
0 / 5 - 0 ratings