Upgrade to libvips v8.17.3

This commit is contained in:
Lovell Fuller
2025-11-01 10:12:13 +00:00
parent 1f2f33d9a7
commit 040b73ca74
20 changed files with 59 additions and 45 deletions

View File

@@ -109,7 +109,7 @@ describe('failOn', () => {
it('converts warnings to error for GeoTIFF', async () => {
await assert.rejects(
sharp(fixtures.inputTiffGeo).toBuffer(),
/Unknown field with tag 33550/
/Tag 34737/
);
});
});

View File

@@ -180,7 +180,7 @@ describe('libvips binaries', function () {
process.env.npm_config_arch = 's390x';
process.env.npm_config_libc = '';
const locatorHash = libvips.yarnLocator();
assert.strictEqual(locatorHash, '7c141893d6');
assert.strictEqual(locatorHash, '4ab19140fd');
delete process.env.npm_config_platform;
delete process.env.npm_config_arch;
delete process.env.npm_config_libc;

View File

@@ -1013,13 +1013,23 @@ describe('Image metadata', function () {
});
});
it('Unsupported lossless JPEG passes underlying error message', function (_t, done) {
sharp(fixtures.inputJpgLossless)
.metadata(function (err) {
assert.strictEqual(true, !!err);
assert.strictEqual(true, /Input file has corrupt header: VipsJpeg: Unsupported JPEG process: SOF type 0xc3/.test(err.message));
done();
});
it('Lossless JPEG', async () => {
const metadata = await sharp(fixtures.inputJpgLossless).metadata();
assert.deepStrictEqual(metadata, {
format: 'jpeg',
width: 227,
height: 149,
space: 'srgb',
channels: 3,
depth: 'uchar',
density: 72,
chromaSubsampling: '4:4:4',
isProgressive: false,
isPalette: false,
hasProfile: false,
hasAlpha: false,
autoOrient: { width: 227, height: 149 }
});
});
it('keepExif maintains all EXIF metadata', async () => {