-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
What are you trying todo?
I want to use the exif metadata API in order to create and read out additional metadata from a TIFF file.
What are the steps to reproduce?
await sharp({ create: { width: 1000, height: 48, channels: 3, background: '#fff' } })
.withMetadata({ exif: { IFD0: { Copyright: 'Some Name' } } })
.toFile('sweep.tiff')
const tiff = await sharp('sweep.tiff').metadata()
console.log(tiff.exif) // logs undefinedWhat is the expected behaviour?
Should log { IFD0: { Copyright: 'Some Name' } } (or a Buffer)
What is the output of running npx envinfo --binaries --system?
System:
OS: macOS 12.1
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 20.61 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 8.4.0 - ~/.nvm/versions/node/v16.13.0/bin/npmReactions are currently unavailable