mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Upgrade exif-reader devDep to v2
This commit is contained in:
parent
70a3067963
commit
8f63d131a4
@ -164,7 +164,7 @@
|
||||
"@types/node": "*",
|
||||
"async": "^3.2.4",
|
||||
"cc": "^3.0.1",
|
||||
"exif-reader": "^1.2.0",
|
||||
"exif-reader": "^2.0.0",
|
||||
"extract-zip": "^2.0.1",
|
||||
"icc": "^3.0.0",
|
||||
"jsdoc-to-markdown": "^8.0.0",
|
||||
|
@ -55,8 +55,8 @@ describe('Image metadata', function () {
|
||||
assert.strictEqual(true, metadata.exif instanceof Buffer);
|
||||
const exif = exifReader(metadata.exif);
|
||||
assert.strictEqual('object', typeof exif);
|
||||
assert.strictEqual('object', typeof exif.image);
|
||||
assert.strictEqual('number', typeof exif.image.XResolution);
|
||||
assert.strictEqual('object', typeof exif.Image);
|
||||
assert.strictEqual('number', typeof exif.Image.XResolution);
|
||||
// ICC
|
||||
assert.strictEqual('object', typeof metadata.icc);
|
||||
assert.strictEqual(true, metadata.icc instanceof Buffer);
|
||||
@ -523,8 +523,8 @@ describe('Image metadata', function () {
|
||||
// EXIF
|
||||
const exif = exifReader(metadata.exif);
|
||||
assert.strictEqual('object', typeof exif);
|
||||
assert.strictEqual('object', typeof exif.image);
|
||||
assert.strictEqual('number', typeof exif.image.XResolution);
|
||||
assert.strictEqual('object', typeof exif.Image);
|
||||
assert.strictEqual('number', typeof exif.Image.XResolution);
|
||||
// ICC
|
||||
assert.strictEqual('object', typeof metadata.icc);
|
||||
assert.strictEqual(true, metadata.icc instanceof Buffer);
|
||||
@ -589,8 +589,8 @@ describe('Image metadata', function () {
|
||||
// EXIF
|
||||
const exif = exifReader(metadata.exif);
|
||||
assert.strictEqual('object', typeof exif);
|
||||
assert.strictEqual('object', typeof exif.image);
|
||||
assert.strictEqual('number', typeof exif.image.XResolution);
|
||||
assert.strictEqual('object', typeof exif.Image);
|
||||
assert.strictEqual('number', typeof exif.Image.XResolution);
|
||||
// ICC
|
||||
assert.strictEqual('object', typeof metadata.icc);
|
||||
assert.strictEqual(true, metadata.icc instanceof Buffer);
|
||||
@ -656,8 +656,8 @@ describe('Image metadata', function () {
|
||||
|
||||
const { exif } = await sharp(data).metadata();
|
||||
const parsedExif = exifReader(exif);
|
||||
assert.strictEqual(parsedExif.image.Software, 'sharp');
|
||||
assert.strictEqual(parsedExif.exif.ExposureTime, 0.2);
|
||||
assert.strictEqual(parsedExif.Image.Software, 'sharp');
|
||||
assert.strictEqual(parsedExif.Photo.ExposureTime, 0.2);
|
||||
});
|
||||
|
||||
it('Set density of JPEG', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user